private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            addToolStripMenuItem.Enabled     = false;
            exitAddToolStripMenuItem.Enabled = true;

            this.Height = 600;
            StudentGridView.Hide();
            SearchButton.Hide();
            StudentSearctBox.Hide(); label10.Hide();
            StudentAddForm.Show();
            StudentDeleteButton.Hide();
            label11.Hide();
            label12.Hide();
            FirstPageButton.Hide();
            NextPageButton.Hide();
            PreviousButton.Hide();
            LastPageButton.Hide();
            RefreshButton.Hide();
        }
Ejemplo n.º 2
0
        public Plate_Window()
        {
            InitializeComponent();

            timer_PlateLink          = new System.Threading.Timer(PlateTimeLink, null, TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(10));
            OnLineLable.BackColor    = Color.DarkRed;
            Plate_.PlateCallBack     = new Action <string, uint>(PlateCallBack);
            PlateStar               += Plate_.CallbackFuntion;
            Plate_.GetmessageAction  = new Action <string>(Message);
            Plate_.PlateDataCallBack = new Action <string, string, string, string>(PlateDataInfoOut);
            Plate_.JpegCallBack      = new Action <byte[]>(JpegCallBack);
            Plate_.DataJpegCallBack  = new Action <byte[]>(DataJpeg);
            setRelayClose           += Plate_.SetRelayClose;
            PlateSettiger           += Plate_.SetTrigger;
            PlateQuitDevice         += Plate_.QuitDevice;
            PlayAction               = new Action <bool>(Plate_.Play);
            Send485Action            = new Action <string>(Plate_.RS485Send);
            SetIpAction              = new Action <string>(Plate_.SetIpNetwork);
            SetSaveImg               = new Action <string>(Plate_.SetSavrImagePath);
            PlateSearchDevice       += Plate_.SearchDeviceList;

            PlateIpTextBox.Text   = Properties.Settings.Default.PlateIPAddr;
            PlatePortTextBox.Text = Properties.Settings.Default.PlatePort.ToString();
            PlateSetIp();
            PlateSetPath();

            LinkButton.Hide();
            AbortButton.Hide();
            TiggerButton.Hide();
            LinkButton.Hide();
            LiftingButton.Hide();
            TransmissionButton.Hide();
            SearchButton.Hide();
            SetIpButton.Hide();
            SetPathButton.Hide();
            OpenButton.Hide();
            CloseButton.Hide();
            OnLineLable.Hide();
        }