Ejemplo n.º 1
0
        private void TimeSett_butt_Click(object sender, EventArgs e)
        {
            //TimeSett_butt.PerformClick(); //Press to the button exp(for future)

            MenuMain_tabCon.Enabled  = true; //Enable all elements
            BottomH_pnl.Enabled      = true;
            Bot_Graphics_Box.Enabled = true;
            GraphicDr_chBox.Enabled  = true;

            TimeSet_pnl.Visible = false;       //Hide time panel

            Bot_Draw.TimeSet(TimeSet_tBox, DrawPoint_lb, SelectedDot);

            //Sett time: add to array and to list box
            TimeSet_tBox.Clear();  //Clear TextBox
        }
Ejemplo n.º 2
0
        private void DrawPoint_lb_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (DrawPoint_lb.SelectedIndex != -1) //If we have changed dot
            {
                MenuMain_tabCon.Enabled  = false; //Disable all other elements
                BottomH_pnl.Enabled      = false;
                Bot_Graphics_Box.Enabled = false;

                TimeSetHelp_lb.Text = "In the point column the time" + Environment.NewLine + "        will be in minutes!";
                TimeSet_pnl.Visible = true;                                      //TimeSet panel - visible
                SelectedDot         = DrawPoint_lb.SelectedIndex;                // Remember dot number
                TimeSet_lb.Text     = $"Set Time for button №{SelectedDot+1} :"; // Show dot number

                TimeSet_tBox.Focus();                                            //Set cursor on Text Box


                DrawPoint_lb.ClearSelected();               //And Clear selected Flag
            }
        }