Пример #1
0
        private void btlLogout_Click(object sender, EventArgs e)
        {
            BalanceWarehouse Warehouse = new BalanceWarehouse();

            Warehouse.UseDefaultCredentials = true;

            try
            {
                if (Warehouse.WSEndProgramCode(tbInputData.Text))
                {
                    Application.ExitThread();
                }
                else
                {
                    MessageBoxExample.MyMessageBox.ShowBox(mt.ReadResFile(this.Name.ToString() + "Error1"));
                }
                tbInputData.Text = "";
            }
            catch (Exception ex)
            {
                MessageBoxExample.MyMessageBox.ShowBox(ex.Message);
            }
        }