void Pad_MouseDoubleClick(object sender, MouseEventArgs e) { if (e.Button == System.Windows.Forms.MouseButtons.Right) { RenameForm frm = new RenameForm("New Name for Pad: " + this.Text); frm.ShowDialog(); TabText = frm.inputfield.Text; Text = TabText; } }
private void btn_SaveAs_Click(object sender, EventArgs e) { FlightControlCommons.PadForms.RenameForm form = new RenameForm("settings.uav"); form.Text = "Please enter a filename"; form.ShowDialog(); string filename = form.inputfield.Text; UAVCommons.Commands.SaveUAV cmd = (UAVCommons.Commands.SaveUAV)core.currentUAV.SendCommand(new UAVCommons.Commands.SaveUAV(filename)); UpdateSettingsList(core); }