示例#1
0
        public static ExampleProcess Instance()
        {
            if (_process == null)
            {
                _process = new ExampleProcess();
            }

            return(_process);
        }
示例#2
0
        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");
            }
        }
示例#3
0
 public bool IsValid(object caller, Condition condition)
 {
     return(ExampleProcess.Instance().HasLogin);
 }