void ReleaseDesignerOutlets() { if (LatencyTextField != null) { LatencyTextField.Dispose(); LatencyTextField = null; } if (LatencyStepper != null) { LatencyStepper.Dispose(); LatencyStepper = null; } if (WatchPathTextField != null) { WatchPathTextField.Dispose(); WatchPathTextField = null; } if (StartStopButton != null) { StartStopButton.Dispose(); StartStopButton = null; } if (EventStreamView != null) { EventStreamView.Dispose(); EventStreamView = null; } }
private void AboutButton_Click(object sender, EventArgs e) { AboutForm frm = new AboutForm(); this.Hide(); frm.ShowDialog(); this.Show(); StartStopButton.Focus(); }
void ReleaseDesignerOutlets() { if (StartStopButton != null) { StartStopButton.Dispose(); StartStopButton = null; } if (TimerLabel != null) { TimerLabel.Dispose(); TimerLabel = null; } }
partial void StartStopAction(Foundation.NSObject sender) { // Take action based on the Activity Indicator state if (ActivityIndicator.IsAnimating) { StartStopButton.SetTitle("Start", UIControlState.Normal); ActivityIndicator.StopAnimating(); } else { StartStopButton.SetTitle("Stop", UIControlState.Normal); ActivityIndicator.StartAnimating(); } }
protected override void OnShown(EventArgs e) { if (WriteDefaultSettingsBoolean == true) { WriteDefaultSettings(); ReadSettings(); } if (MainForm.ApplicationSettings.StartHotspotAutomatically == true) { StartStopButton.PerformClick(); } if (MainForm.ApplicationSettings.StartMinimized == true) { this.WindowState = FormWindowState.Minimized; } }
private void RegisterButton_Click(object sender, EventArgs e) { RegisterForm frm = new RegisterForm(); this.Hide(); frm.ShowDialog(); if (frm.ValidationKey == true) { this.Show(); StartStopButton.Focus(); RegisterButton.Visible = false; } else { Environment.Exit(0); } }
private void BTN_Start_Click(object sender, RoutedEventArgs e) { StartStopButton btn = (sender as StartStopButton); if (btn.GetState()) { List <String> file_name = new List <string>(); foreach (String s in List_Files.Items) { file_name.Add(s); } Main.Instance().SetShape(TB_InputPath.Text, TB_OutputPath.Text, file_name); Main.Instance().SetDB(TB_DBIP.Text, TB_DBID.Text, TB_DBPW.Text); Main.Instance().Start(); } else { Main.Instance().Stop(); } }
private void setNetworkButton_Click(object sender, EventArgs e) { Boolean CheckStartSetNetwork; SetNetworkForm Form = new SetNetworkForm(); if (NetworkInfo.NetworkStatus == "Started") { CheckStartSetNetwork = true; } else { Hotspot.Start(); CheckStartSetNetwork = false; } this.Hide(); Form.ShowDialog(); if (CheckStartSetNetwork == false) { Hotspot.Stop(); } this.Show(); UpdateLabelsText(); StartStopButton.Focus(); }
void ReleaseDesignerOutlets() { if (ChatList != null) { ChatList.Dispose(); ChatList = null; } if (ChatListMessageColumn != null) { ChatListMessageColumn.Dispose(); ChatListMessageColumn = null; } if (ChatListSenderColumn != null) { ChatListSenderColumn.Dispose(); ChatListSenderColumn = null; } if (ClientList != null) { ClientList.Dispose(); ClientList = null; } if (ClientListClientColumn != null) { ClientListClientColumn.Dispose(); ClientListClientColumn = null; } if (EnteredBufferSize != null) { EnteredBufferSize.Dispose(); EnteredBufferSize = null; } if (EnteredMessage != null) { EnteredMessage.Dispose(); EnteredMessage = null; } if (EnteredServerName != null) { EnteredServerName.Dispose(); EnteredServerName = null; } if (EnteredServerIP != null) { EnteredServerIP.Dispose(); EnteredServerIP = null; } if (EnteredServerPort != null) { EnteredServerPort.Dispose(); EnteredServerPort = null; } if (StartStopButton != null) { StartStopButton.Dispose(); StartStopButton = null; } if (SendMessageButton != null) { SendMessageButton.Dispose(); SendMessageButton = null; } }