private void NewOrder_Click(object sender, EventArgs e) { UpdateClients(); InfoPanel.Hide(); Workers.Hide(); Delivers.Hide(); QuestionPanel.Hide(); MyDeliveryPanel.Hide(); NewDeliveryPanel.Show(); NewDeliveryPanel.Location = loc; NamePanel.Text = "Клиенты"; Settings.ForeColor = Color.FromArgb(227, 213, 212); Question.ForeColor = Color.FromArgb(227, 213, 212); Orders.ForeColor = Color.FromArgb(227, 213, 212); Help.ForeColor = Color.FromArgb(227, 213, 212); NavPanel.Height = NewDelivery.Height; NavPanel.Top = NewDelivery.Top; NavPanel.Left = NewDelivery.Left; NewDelivery.ForeColor = Color.FromArgb(217, 35, 73); }
private void gunaButton5_Click(object sender, EventArgs e) { UpdateQuestions(); QuestionPanel.Location = loc; Delivers.Hide(); InfoPanel.Hide(); QuestionPanel.Show(); Workers.Hide(); MyDeliveryPanel.Hide(); NewDeliveryPanel.Hide(); NamePanel.Text = "Вопросы"; Settings.ForeColor = Color.FromArgb(227, 213, 212); NewDelivery.ForeColor = Color.FromArgb(227, 213, 212); Orders.ForeColor = Color.FromArgb(227, 213, 212); Question.ForeColor = Color.FromArgb(227, 213, 212); NavPanel.Height = Help.Height; NavPanel.Top = Help.Top; NavPanel.Left = Help.Left; Help.ForeColor = Color.FromArgb(217, 35, 73); }
private void Settings_Click(object sender, EventArgs e) { InfoPanel.Show(); InfoPanel.Location = loc; QuestionPanel.Hide(); MyDeliveryPanel.Hide(); Delivers.Hide(); Workers.Hide(); NewDeliveryPanel.Hide(); NamePanel.Text = "Справка"; Question.ForeColor = Color.FromArgb(227, 213, 212); NewDelivery.ForeColor = Color.FromArgb(227, 213, 212); Orders.ForeColor = Color.FromArgb(227, 213, 212); Help.ForeColor = Color.FromArgb(227, 213, 212); NavPanel.Height = Settings.Height; NavPanel.Top = Settings.Top; NavPanel.Left = Settings.Left; Settings.ForeColor = Color.FromArgb(217, 35, 73); }
private void Orders_Click(object sender, EventArgs e) { InfoPanel.Hide(); QuestionPanel.Hide(); UpdateOwners(); MyDeliveryPanel.Location = loc; MyDeliveryPanel.Show(); NewDeliveryPanel.Hide(); Delivers.Hide(); Workers.Hide(); NamePanel.Text = "Владельцы"; Settings.ForeColor = Color.FromArgb(227, 213, 212); NewDelivery.ForeColor = Color.FromArgb(227, 213, 212); Question.ForeColor = Color.FromArgb(227, 213, 212); Help.ForeColor = Color.FromArgb(227, 213, 212); NavPanel.Height = Orders.Height; NavPanel.Top = Orders.Top; NavPanel.Left = Orders.Left; Orders.ForeColor = Color.FromArgb(217, 35, 73); }
public ForAdmin(string id) { InitializeComponent(); Settings.ForeColor = Color.FromArgb(227, 213, 212); Question.ForeColor = Color.FromArgb(227, 213, 212); Orders.ForeColor = Color.FromArgb(227, 213, 212); Help.ForeColor = Color.FromArgb(227, 213, 212); NavPanel.Height = NewDelivery.Height; NavPanel.Top = NewDelivery.Top; NavPanel.Left = NewDelivery.Left; NewDelivery.ForeColor = Color.FromArgb(217, 35, 73); NamePanel.Text = "Новая доставка"; UserID = id; UpdateClients(); NewDeliveryPanel.Show(); NewDeliveryPanel.Location = loc; MyDeliveryPanel.Hide(); QuestionPanel.Hide(); InfoPanel.Hide(); Workers.Hide(); Delivers.Hide(); }