System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FileNameForm));\r
this.octopusIDSelector1 = new OctopusClient.OctopusIDSelector();\r
this.buttonCancel = new System.Windows.Forms.Button();\r
+ this.buttonRendben = new System.Windows.Forms.Button();\r
this.SuspendLayout();\r
// \r
// octopusIDSelector1\r
// \r
this.buttonCancel.Anchor = System.Windows.Forms.AnchorStyles.Right;\r
this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;\r
- this.buttonCancel.Location = new System.Drawing.Point(195, 355);\r
+ this.buttonCancel.Location = new System.Drawing.Point(118, 356);\r
this.buttonCancel.Name = "buttonCancel";\r
this.buttonCancel.Size = new System.Drawing.Size(75, 23);\r
this.buttonCancel.TabIndex = 6;\r
this.buttonCancel.Text = "Mégse";\r
this.buttonCancel.UseVisualStyleBackColor = true;\r
// \r
+ // buttonRendben\r
+ // \r
+ this.buttonRendben.Enabled = false;\r
+ this.buttonRendben.Location = new System.Drawing.Point(195, 356);\r
+ this.buttonRendben.Name = "buttonRendben";\r
+ this.buttonRendben.Size = new System.Drawing.Size(75, 23);\r
+ this.buttonRendben.TabIndex = 7;\r
+ this.buttonRendben.Text = "Rendben";\r
+ this.buttonRendben.UseVisualStyleBackColor = true;\r
+ this.buttonRendben.Click += new System.EventHandler(this.buttonRendben_Click);\r
+ // \r
// FileNameForm\r
// \r
+ this.AcceptButton = this.buttonRendben;\r
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;\r
this.BackColor = System.Drawing.Color.White;\r
this.CancelButton = this.buttonCancel;\r
this.ClientSize = new System.Drawing.Size(276, 383);\r
this.ControlBox = false;\r
+ this.Controls.Add(this.buttonRendben);\r
this.Controls.Add(this.buttonCancel);\r
this.Controls.Add(this.octopusIDSelector1);\r
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;\r
#endregion\r
private OctopusClient.OctopusIDSelector octopusIDSelector1;\r
private System.Windows.Forms.Button buttonCancel;\r
+ private System.Windows.Forms.Button buttonRendben;\r
}\r
}
\ No newline at end of file
private String result;\r
private IMainForm mainForm;\r
private ISettings settings;\r
+ private String id;\r
+\r
public FileNameForm(IMainForm mainForm, ISettings settings) {\r
InitializeComponent();\r
this.settings = settings;\r
}\r
\r
private void IdChangedEvent(String id) {\r
- result = String.Format("{0}.wav", id);\r
- if (!result.EndsWith(".wav"))\r
- result = String.Format("{0}{1}", result, StringResources.DOT_WAV);\r
- mainForm.recordFireEvent(result, id);\r
- Dispose();\r
+ this.id = id;\r
+ buttonRendben.Enabled = !String.IsNullOrEmpty(id);\r
}\r
\r
private void FileNameForm_Load(object sender, EventArgs e)\r
{\r
Dispose();\r
}\r
+\r
+ private void buttonRendben_Click(object sender, EventArgs e) {\r
+ result = String.Format("{0}.wav", id);\r
+ if (!result.EndsWith(".wav"))\r
+ result = String.Format("{0}{1}", result, StringResources.DOT_WAV);\r
+ mainForm.recordFireEvent(result, id);\r
+ Dispose();\r
+ }\r
}\r
}\r