Exemple #1
0
        private void editMenuItemMenuItem_Click(object sender, EventArgs e)
        {
            Entretien.Client.ClientEditViewDialog clientEditViewDialog = Entretien.Client.ClientEditViewDialog.Instance(this.clientBindingSource);
            clientEditViewDialog.ShowDialog();
            this.Close();

        }
Exemple #2
0
 public static ClientEditViewDialog Instance(System.Windows.Forms.BindingSource bindingSource)
 {
     System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
     if ((defaultInstance == null))
     {
         defaultInstance = new Entretien.Client.ClientEditViewDialog();
         defaultInstance.clientBindingSource.DataSource = bindingSource;
     }
     defaultInstance.oidTextBox.Focus();
     defaultInstance.AutoScrollPosition           = new System.Drawing.Point(0, 0);
     defaultInstance.clientBindingSource.Position = bindingSource.Position;
     System.Windows.Forms.Cursor.Current          = System.Windows.Forms.Cursors.Default;
     return(defaultInstance);
 }