public static ExampleProcess Instance() { if (_process == null) { _process = new ExampleProcess(); } return(_process); }
public override void Run(object sender, EventArgs e) { CommandManager.Push(this); LoginForm form = new LoginForm(); if (form.ShowDialog() == System.Windows.Forms.DialogResult.OK) { ExampleProcess.Instance().HasLogin = true; CityMakerExplorer.AddIn.WinForm.MainFrmService.BarPerformClick("normal"); } }
public bool IsValid(object caller, Condition condition) { return(ExampleProcess.Instance().HasLogin); }