tify"> операцііToolStripMenuItem.Visible=true;
операцііToolStripMenuItem.Visible=false;
var customers=sqlOperation.GetCustomer (source);
foreach (var customer in customers)
{. Items.Add (customer.Surname.Trim () + + customer.Name.Trim () + + customer.Patronomyc.Trim ()) ;. Tag=customers;
}
var placeWorks=sqlOperation.GetPlaceWork (source);
foreach (var placeWork in placeWorks)
{. Items.Add (placeWork.Address.Trim ()) ;. Tag=placeWorks;
}. Text=sqlOperation.IncrementNumberOrder (source) .ToString ();
}
private void addCustomerTimer_Tick (object sender, EventArgs e)
{(addCustomerForm!=null)
{(addCustomerForm.addCustomer amp; amp;! addCustomerForm.Visible)
{. addCustomer=false; .Items.Clear (); customers=sqlOperation.GetCustomer (source); (int i=0; i lt; customers.Count; i ++)
{. Items.Add (customers [i] .Surname.Trim () + + customers [i] .Name.Trim () + + [i]. Patronomyc.Trim ());
}. Text=addCustomerForm.customer.Surname.Trim () + + AddCustomerForm.customer.Name.Trim () + + AddCustomerForm.customer.Patronomyc; .IdCustomer=addCustomerForm.customer.Id; .customer=addCustomerForm.customer; .Close () ;. Stop ();
}
}
}
private void buttonSelectObject_Click (object sender, EventArgs e)
{. Start ();=new AddObjectForm () ;. source=source; .Visible=true;
}
private void addObjectTimer_Tick (object sender, EventArgs e)
{(addObjectForm!=null)
{(addObjectForm.addPlaceWork amp; amp;! addObjectForm.Visible)
{. addPlaceWork=false; .Items.Clear (); placeWorks=sqlOperation.GetPlaceWork (source); (int i=0; i lt; placeWorks.Count; i ++)
{. Items.Add (placeWorks [i] .Address.Trim ());
}. Text=addObjectForm.placeWork.Address.Trim () ;. IdObjectInstallation=addObjectForm.placeWork.Id; .placeWork=addObjectForm.placeWork; .Close () ;. Stop ();
}
}
}
private void comboBoxCustomer_SelectedIndexChanged (object sender, EventArgs e)
{(Customer cust in (List lt; Customer gt;) comboBoxCustomer.Tag)
{((cust.Surname.Trim () + + cust.Name.Trim () + + cust.Patronomyc) == comboBoxCustomer.Text)
{. IdCustomer=cust.Id; .customer=cust;
}
}
}
private void comboBoxObject_SelectedIndexChanged (object sender, EventArgs e)
{(PlaceWork placeWork in (List lt; PlaceWork gt;) comboBoxObject.Tag)
{((placeWork.Address.Trim () == comboBoxObject.Text))
{. IdObjectInstallation=placeWork.Id; .placeWork=placeWork;
}
}
}
private void ToolStripMenuItemClose_Click (object sender, EventArgs e)
{. Close ();
}
private void ToolStripMenuItemNewOrder_Click (object sender, EventArgs e)
{. Text=string.Empty; .Text=sqlOperation.IncrementNumberOrder (source) .ToString () ;. Text=string.Empty; .Text=string.Empty; .Text=string.Empty ; .Text=string.Empty; .Text=string.Empty; .Items.Clear () ;. Items.Clear () ;. Items.Clear () ;. CheckState=CheckState.Unchecked;
} void ToolStripMenuItemFindOrder_Click (object sender, EventArgs e)
{= new FindOrderForm () ;. source=source; .Visible=true;
}
private void toolStripTextBox1_Click (object sender, EventArgs e)
{
} void toolStripMenuItem2_Click (object sender, EventArgs e)
{. Start ();=new AuthorizationAndSelectDBForm () ;. Visible=true;
}
private void timerSelectDB_Tick (object sender, EventArgs e)
{(selectDBForm!=null)
{(selectDBForm.selectDB amp; amp;! selectDBForm.Visible)
{();=selectDBForm.textBoxSelectDB.Text.Trim (); customers=sqlOperation.GetCustomer (source); (var customer in customers)
{. Items.Add (customer.Su...