예제 #1
0
파일: Services.cs 프로젝트: Aurellis/CRM
 private void Points_FormClosing(object sender, FormClosingEventArgs e)
 {
     dgList.DataSource = null;
     dgList.Rows.Clear();
     dgList.DataSource = Connect.GetList("service");
 }
예제 #2
0
 private void bSave_Click(object sender, EventArgs e)
 {
     Connect.EditItem("client", code, tSName.Text, tName.Text, tPatron.Text, tTel.Text, null, 0, null);
     this.Close();
 }
예제 #3
0
파일: Login.cs 프로젝트: Aurellis/CRM
 private void button1_Click(object sender, EventArgs e)
 {
     if (this.Height == 350)
     {               
         this.Height = 440;
     }
     else
     {
         if (tServerHost.Text == string.Empty || tServerHost.Text.Contains(' ') || !Connect.SettingsConnect(tServerHost.Text))
         {
             MessageBox.Show("Адрес сервера не указан или содержит недопустимые символы");
         }
         else
         {                    
             this.Height = 350;
         }
     }
 }
예제 #4
0
파일: Login.cs 프로젝트: Aurellis/CRM
 private void bSettings_Click(object sender, EventArgs e)
 {
     if (this.Height == 180)
     {
         bSettings.Text = "Настройки <<";
         this.Height = 350;
     }
     else
     {
         if ( tServerHost.Text == string.Empty || tServerHost.Text.Contains(' ') || !Connect.SettingsConnect(tServerHost.Text,"",tDbUser.Text,tDbPass.Text))
         {
             MessageBox.Show("Адрес сервера не указан или содержит недопустимые символы"); 
         }
         else
         {
             bSettings.Text = "Настройки >>";
             this.Height = 180;
         }
     }
 }
예제 #5
0
파일: Clients.cs 프로젝트: Aurellis/CRM
 private void Client_FormClosing(object sender, FormClosingEventArgs e)
 {
     dgList.DataSource = null;
     dgList.Rows.Clear();
     dgList.DataSource = Connect.GetList("client");
 }