コード例 #1
0
ファイル: WinLogin.xaml.cs プロジェクト: pjamenaja/onixlegacy
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     if (!isLogin)
     {
         CConfig.ConfigWrite();
         Application.Current.Shutdown();
     }
 }
コード例 #2
0
        private Boolean SaveData()
        {
            CConfig.SetKey(txtDesc.Password);
            CConfig.SetUrl(txtCode.Text);
            CConfig.ConfigWrite();

            OnixWebServiceAPI.Init(CConfig.GetKey(), CConfig.GetUrl());

            return(true);
        }
コード例 #3
0
        private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (isLogin)
            {
                Boolean result = CHelper.AskConfirmMessage("CONFIRM_EXIT");
                if (result)
                {
                    CUtil.EnableForm(false, this);
                    CConfig.ConfigWrite();
                    OnixWebServiceAPI.Logout(new CTable("DUMMY"));
                    CUtil.EnableForm(true, this);
//e.Cancel = true;
                    return;
                }

                e.Cancel = true;
            }

            CConfig.ConfigWrite();
        }