private void Settings_Click(object sender, EventArgs e) { QuestionPanel.Hide(); MyDeliveryPanel.Hide(); ProfilePanel.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); Settings.Image = Properties.Resources.Settings_on; NewDelivery.Image = Properties.Resources.NewDelivery; }
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 Question_Click(object sender, EventArgs e) { QuestionPanel.Location = loc; QuestionPanel.Show(); UpdateQuestions(); MyDeliveryPanel.Hide(); ProfilePanel.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); Help.ForeColor = Color.FromArgb(227, 213, 212); NavPanel.Height = Question.Height; NavPanel.Top = Question.Top; NavPanel.Left = Question.Left; Question.ForeColor = Color.FromArgb(217, 35, 73); Question.Image = Properties.Resources.Question_on; NewDelivery.Image = Properties.Resources.NewDelivery; }
private void Orders_Click(object sender, EventArgs e) { UpdateDelivery(); QuestionPanel.Hide(); MyDeliveryPanel.Location = loc; MyDeliveryPanel.Show(); ProfilePanel.Hide(); NewDeliveryPanel.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); Orders.Image = Properties.Resources.MyDelivery_on; NewDelivery.Image = Properties.Resources.NewDelivery; }
private void Help_Click(object sender, EventArgs e) { InfoPanel.Location = loc; InfoPanel.Show(); QuestionPanel.Hide(); MyDeliveryPanel.Hide(); ProfilePanel.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); Help.Image = Properties.Resources.Help_on; NewDelivery.Image = Properties.Resources.Company; }
private void Question_Click(object sender, EventArgs e) { UpdateWorkers(); InfoPanel.Hide(); Workers.Location = loc; Workers.Show(); Delivers.Hide(); QuestionPanel.Hide(); MyDeliveryPanel.Hide(); Delivers.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); Help.ForeColor = Color.FromArgb(227, 213, 212); NavPanel.Height = Question.Height; NavPanel.Top = Question.Top; NavPanel.Left = Question.Left; Question.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); }
private void ProfilePic_Click(object sender, EventArgs e) { InfoPanel.Hide(); NewDeliveryPanel.Hide(); UpdateProfile(); NamePanel.Text = "Профиль"; ProfilePanel.Location = loc; ProfilePanel.Show(); 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); NewDelivery.ForeColor = Color.FromArgb(227, 213, 212); NavPanel.Height = 0; NavPanel.Top = 0; NavPanel.Left = 0; Orders.Image = Properties.Resources.MyDelivery; Settings.Image = Properties.Resources.Settings; Question.Image = Properties.Resources.Question; Help.Image = Properties.Resources.Help; NewDelivery.Image = Properties.Resources.NewDelivery; }