private void BtnConfig_Click(object sender, RoutedEventArgs e) { textHeader.Text = "CONFIGURACION"; ConfigView config = new ConfigView(); maincontent.Content = config; }
private void LaunchConfigSetup() { ConfigView view = Instantiate(_configView, Vector3.zero, Quaternion.identity, _canvas.transform); view.SetConfig(currentConfig); view.transform.localPosition = Vector3.zero; }
private void OpenConfigManagerView(object obj) { if (_configManagerView == null) { _configManagerView = Container.Resolve <ConfigView>(); _configManagerView.ShowDialog(); } }
private void ExecuteShowConfigCommand() { var view = new ConfigView() { Owner = MainWindow.Instance, }; view.Show(); }
protected override void OnStartup(StartupEventArgs e) { StartupValidation(); base.OnStartup(e); PluginHost.RaiseStartupEvent(); ShutdownMode = ShutdownMode.OnExplicitShutdown; NnotifyIcon = new MainNotifyIconView(); ConfigMenu = new ConfigView(); Overlay = new ContextOverlay(); }
private void ExecuteShowConfigCommand() { var mainView = WPFHelper.MainWindow; var configView = new ConfigView(); configView.Height = mainView.Height; configView.Left = mainView.Left + mainView.Width + 3; configView.Top = mainView.Top; configView.Show(); }
public void SaveConfigFile(ConfigView view, string fileName) { if (view.TBlockAllFolder.Text.Length <= 0) { return; } if (view.TBlockMapFolder.Text.Length <= 0) { return; } if (view.TBlockNewFolder.Text.Length <= 0) { return; } if (view.TBlockOrderList.Text.Length <= 0) { return; } if (view.TBlockLogFolder.Text.Length <= 0) { return; } try { var doc = XDocument.Load(fileName); var server = doc.Element("Config").Element("Server"); server.Element("AllDataDirectory").Value = view.TBlockAllFolder.Text; server.Element("NewDataDirectory").Value = view.TBlockNewFolder.Text; server.Element("BlankMap").Value = view.TBlockMapFolder.Text; server.Element("Log").Value = view.TBlockLogFolder.Text; server.Element("List").Value = view.TBlockOrderList.Text; var application = doc.Element("Config").Element("Application"); application.Element("ExecuteTime").Value = view.TimePicker.Value.ToString("HH:mm"); doc.Save(fileName); LoadConfigFile(fileName); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public static void ConfigView(FormWindowState windowState = FormWindowState.Normal) { Cursor.Current = Cursors.WaitCursor; if (Application.OpenForms["ConfigView"] == null) { ConfigView action = new ConfigView(); action.Show(); } else { { Application.OpenForms["ConfigView"].Activate(); Application.OpenForms["ConfigView"].WindowState = windowState; Application.OpenForms["ConfigView"].Show(); } } }
private void ReplyToOpenWindowMessage(OpenWindowNotificationMessage msg) { Window window = null; switch (msg.TargetWindowType) { case WindowType.Config: window = new ConfigView(); break; case WindowType.Camera: window = new CameraView(); break; } if (window != null) { window.Owner = this; window.ShowDialog(); } }
void Start() { instance = this; InitMahjong(); for (int i = 0; i < handMjList.Length; i++) { handMjList [i] = new ArrayList(); handMjObj [i] = new ArrayList(); } for (int i = 0; i < playerBtns.Length; i++) { EventTriggerListener.Get(playerBtns [i].gameObject).onClick = SetCurrentPlayerIndex; } playerBtns [0].gameObject.GetComponent <Image> ().color = Color.green; btnCreate.onClick.AddListener(OnCreateButtonClicked); btnReset.onClick.AddListener(OnResetButtonClicked); btnExit.onClick.AddListener(OnExitButtonClicked); }
private void ShowConfigExec() { GalaSoft.MvvmLight.Threading.DispatcherHelper.CheckBeginInvokeOnUI(new System.Action( () => { ConfigView cv = new ConfigView(); cv.ShowDialog(); } )); }
public void OpenConfigureView(object parameter) { var view = new ConfigView(SelectedToDo, CurrentUser); view.Show(); }
private void Config_Click(object sender, RoutedEventArgs e) { ConfigView.GetInstance().Show(); }
public void ShowConfigView(object sender, EventArgs e) { ConfigView.GetInstance().Show(); }
private void OnConfigViewClosedMsg(ConfigViewClosedMsg msg) { _configManagerView = null; }