public FormOptions(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; textBoxServer.Text = mainWin.m_DBServer; textBoxDBName.Text = mainWin.m_DBName; textBoxLogin.Text = mainWin.m_DBLogin; textBoxPassword.Text = mainWin.m_DBPassword; }
public FormCities(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewCities.Columns.Add("№", -2, HorizontalAlignment.Left); listViewCities.Columns.Add("Название", -2, HorizontalAlignment.Left); listViewCities.Columns[0].Width = 25; listViewCities.Columns[1].Width = 150; }
public FormZakazczik(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewZakazczik.Columns.Add("№", -2, HorizontalAlignment.Left); listViewZakazczik.Columns.Add("Наименование", -2, HorizontalAlignment.Left); listViewZakazczik.Columns.Add("форма собственности", -2, HorizontalAlignment.Left); listViewZakazczik.Columns.Add("Контактное лицо", -2, HorizontalAlignment.Left); listViewZakazczik.Columns.Add("Телефон", -2, HorizontalAlignment.Left); listViewZakazczik.Columns.Add("e-mail", -2, HorizontalAlignment.Left); listViewZakazczik.Columns.Add("ICQ", -2, HorizontalAlignment.Left); listViewZakazczik.Columns.Add("Адрес", -2, HorizontalAlignment.Left); listViewZakazczik.Columns.Add("Сайт", -2, HorizontalAlignment.Left); listViewZakazczik.Columns[0].Width = 25; listViewZakazczik.Columns[1].Width = 150; listViewZakazczik.Columns[2].Width = 150; listViewZakazczik.Columns[3].Width = 150; listViewZakazczik.Columns[4].Width = 150; listViewZakazczik.Columns[5].Width = 150; listViewZakazczik.Columns[6].Width = 150; listViewZakazczik.Columns[7].Width = 150; listViewZakazczik.Columns[8].Width = 150; }
public FormEkskursovody(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewEkskursovody.Columns.Add("№", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("Ф.И.О.", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("Категория", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("Дата рождения", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("Паспорт", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("ИНН", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("Страховое", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("Телефон", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("Адрес", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns.Add("Активность", -2, HorizontalAlignment.Left); listViewEkskursovody.Columns[0].Width = 50; listViewEkskursovody.Columns[1].Width = 150; listViewEkskursovody.Columns[2].Width = 150; listViewEkskursovody.Columns[3].Width = 150; listViewEkskursovody.Columns[4].Width = 150; listViewEkskursovody.Columns[5].Width = 150; listViewEkskursovody.Columns[6].Width = 150; listViewEkskursovody.Columns[7].Width = 150; listViewEkskursovody.Columns[8].Width = 200; listViewEkskursovody.Columns[9].Width = 200; }
public FormBilety2(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewBilety2.Items.Clear(); }
public FormBilety(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewBilety.Columns.Add("№", -2, HorizontalAlignment.Left); listViewBilety.Columns.Add("Дата поступления", -2, HorizontalAlignment.Left); listViewBilety.Columns.Add("Наименование", -2, HorizontalAlignment.Left); listViewBilety.Columns.Add("Номер начало", -2, HorizontalAlignment.Left); listViewBilety.Columns.Add("Номер конец", -2, HorizontalAlignment.Left); listViewBilety.Columns.Add("Количество", -2, HorizontalAlignment.Left); listViewBilety.Columns.Add("Цена", -2, HorizontalAlignment.Left); listViewBilety.Columns[0].Width = 25; listViewBilety.Columns[1].Width = 150; listViewBilety.Columns[2].Width = 300; listViewBilety.Columns[3].Width = 150; listViewBilety.Columns[4].Width = 150; listViewBilety.Columns[5].Width = 150; listViewBilety.Columns[6].Width = 150; }
/// <summary> /// Constructor /// </summary> public FormMain() { parentWindow = this; // // Required for Win Form Designer support // InitializeComponent(); documentCount=0; statusBarMain.Height += 5; toolStrip1.Visible = false ; string fileXML = Application.StartupPath + "\\config.xml"; try { XmlDocument xmlDoc = new XmlDocument(); try { xmlDoc.Load(fileXML); } catch (System.IO.FileNotFoundException) { XmlTextWriter xmlWriter = new XmlTextWriter(fileXML, System.Text.Encoding.UTF8); xmlWriter.Formatting = Formatting.Indented; xmlWriter.WriteProcessingInstruction("xml", "version='1.0' encoding='UTF-8'"); xmlWriter.WriteStartElement("Options"); xmlWriter.Close(); xmlDoc.Load(fileXML); } XmlNode root = xmlDoc.DocumentElement; XmlNodeList nodeList = xmlDoc.SelectNodes("/Options/Item"); XmlElement childNodeDBServer = null; XmlElement childNodeDBName = null; XmlElement childNodeDBLogin = null; XmlElement childNodeDBPassword = null; for (int i = 0; i < nodeList.Count; i++) { if (((XmlElement)nodeList.Item(i)).GetAttribute("Name") == "Server") { childNodeDBServer = (XmlElement)nodeList.Item(i); m_DBServer = childNodeDBServer.InnerText; }; if (((XmlElement)nodeList.Item(i)).GetAttribute("Name") == "DBName") { childNodeDBName = (XmlElement)nodeList.Item(i); m_DBName = childNodeDBName.InnerText; }; if (((XmlElement)nodeList.Item(i)).GetAttribute("Name") == "Login") { childNodeDBLogin = (XmlElement)nodeList.Item(i); m_DBLogin = childNodeDBLogin.InnerText; }; if (((XmlElement)nodeList.Item(i)).GetAttribute("Name") == "Password") { childNodeDBPassword = (XmlElement)nodeList.Item(i); m_DBPassword = childNodeDBPassword.InnerText; }; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }
public FormEkskursii(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewEkskursii.Columns.Add("№", -2, HorizontalAlignment.Left); listViewEkskursii.Columns.Add("Название", -2, HorizontalAlignment.Left); listViewEkskursii.Columns.Add("Стоимость", -2, HorizontalAlignment.Left); listViewEkskursii.Columns.Add("Оплата по 1 кат.", -2, HorizontalAlignment.Left); listViewEkskursii.Columns.Add("Оплата по 2 кат.", -2, HorizontalAlignment.Left); listViewEkskursii.Columns.Add("Оплата по 3 кат.", -2, HorizontalAlignment.Left); listViewEkskursii.Columns.Add("Активность", -2, HorizontalAlignment.Left); listViewEkskursii.Columns[0].Width = 25; listViewEkskursii.Columns[1].Width = 150; listViewEkskursii.Columns[2].Width = 150; listViewEkskursii.Columns[3].Width = 150; listViewEkskursii.Columns[4].Width = 150; listViewEkskursii.Columns[5].Width = 150; listViewEkskursii.Columns[6].Width = 150; }
public FormZhurnal(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewZhurnal.Columns.Add("№", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Дата", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Ф.И.О.", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Номер экскурсии", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Квитанции начало", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Квитанции конец", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Кол-во чел", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Цена", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Стоимость", -2, HorizontalAlignment.Left); listViewZhurnal.Columns.Add("Заказчик", -2, HorizontalAlignment.Left); listViewZhurnal.Columns[0].Width = 25; listViewZhurnal.Columns[1].Width = 150; listViewZhurnal.Columns[2].Width = 150; listViewZhurnal.Columns[3].Width = 150; listViewZhurnal.Columns[4].Width = 150; listViewZhurnal.Columns[5].Width = 150; listViewZhurnal.Columns[6].Width = 150; listViewZhurnal.Columns[7].Width = 150; listViewZhurnal.Columns[8].Width = 150; listViewZhurnal.Columns[9].Width = 150; }
public FormRasselenie(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewRasselenie.Columns.Add("№", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Дата", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Номер квитанции", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Ф.И.О.", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Город", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Кол-во дней", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Кол-во человек", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Житие", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Парковка", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Бронь", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Безнал", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Заказчик", -2, HorizontalAlignment.Left); listViewRasselenie.Columns.Add("Сумма", -2, HorizontalAlignment.Left); listViewRasselenie.Columns[0].Width = 35; listViewRasselenie.Columns[1].Width = 100; listViewRasselenie.Columns[2].Width = 100; listViewRasselenie.Columns[3].Width = 150; listViewRasselenie.Columns[4].Width = 100; listViewRasselenie.Columns[5].Width = 80; listViewRasselenie.Columns[6].Width = 80; listViewRasselenie.Columns[7].Width = 150; listViewRasselenie.Columns[8].Width = 70; listViewRasselenie.Columns[9].Width = 100; listViewRasselenie.Columns[10].Width = 100; listViewRasselenie.Columns[11].Width = 150; listViewRasselenie.Columns[12].Width = 100; }
public FormReports(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; listViewReports.Columns.Add("Кол-во экскурсий", -2, HorizontalAlignment.Left); listViewReports.Columns.Add("Стоимость", -2, HorizontalAlignment.Left); listViewReports.Columns.Add("Количество человек", -2, HorizontalAlignment.Left); listViewReports.Columns.Add("Колчел", -2, HorizontalAlignment.Left); listViewReports.Columns.Add("Нумер", -2, HorizontalAlignment.Left); listViewReports.Columns.Add("Цена", -2, HorizontalAlignment.Left); listViewReports.Columns.Add("Цена", -2, HorizontalAlignment.Left); listViewReports.Columns[0].Width = 150; listViewReports.Columns[1].Width = 150; listViewReports.Columns[2].Width = 150; listViewReports.Columns[3].Width = 150; listViewReports.Columns[4].Width = 150; listViewReports.Columns[5].Width = 150; listViewReports.Columns[6].Width = 150; }
public FormReportsRasselenie(FormMain mainWin) { InitializeComponent(); this.mainWin = mainWin; this.MdiParent = mainWin; this.WindowState = FormWindowState.Maximized; /* listViewReportsRasselenie.Columns.Add("Дата", -2, HorizontalAlignment.Left); listViewReportsRasselenie.Columns.Add("Способ жития", -2, HorizontalAlignment.Left); listViewReportsRasselenie.Columns.Add("Город", -2, HorizontalAlignment.Left); listViewReportsRasselenie.Columns.Add("Кол-во человек", -2, HorizontalAlignment.Left); listViewReportsRasselenie.Columns.Add("Кол-во денег", -2, HorizontalAlignment.Left); listViewReportsRasselenie.Columns.Add("Проценты", -2, HorizontalAlignment.Left); listViewReportsRasselenie.Columns[0].Width = 100; listViewReportsRasselenie.Columns[1].Width = 200; listViewReportsRasselenie.Columns[2].Width = 200; listViewReportsRasselenie.Columns[3].Width = 200; listViewReportsRasselenie.Columns[4].Width = 200; listViewReportsRasselenie.Columns[5].Width = 200;*/ }