Пример #1
0
        private void RadioZ_CheckedChanged(object sender, EventArgs e)
        {
            DataNode[] dn = new DataNode[100];
            RadioA.Text = RadioA.Text.ToUpper();
            dn          = m.GetContactByIndex('Z');
            int   j      = 0;
            Point newLoc = new Point(5, 5);

            while (dn[j] != null)
            {
                MaterialRaisedButton b = new MaterialRaisedButton();
                b.Visible   = true;
                b.Text      = dn[j].storeFname + dn[j].storeLname;
                b.BackColor = Color.White;
                b.Size      = new Size(200, 50);
                b.Location  = newLoc;
                newLoc.Offset(0, b.Height + 5);
                this.ContactTabNamePanel.Controls.Add(b);
                Console.WriteLine(dn[j].storeFname + dn[j].storeLname);
                j++;
            }

            // Set whatever you want for initial location
            for (int i = 0; i < dn.Length; i++)
            {
            }
        }
Пример #2
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            m.CreateXLinkedList();
            m.ReadAllContacts();
            DataNode[] dn     = m.GetAllContacts();
            int        j      = 0;
            Point      newLoc = new Point(5, 5);

            while (dn[j] != null)
            {
                MaterialRaisedButton b = new MaterialRaisedButton();
                b.Visible   = true;
                b.Text      = dn[j].storeFname + " " + dn[j].storeLname;
                b.BackColor = Color.White;
                b.Size      = new Size(200, 50);
                b.Location  = newLoc;
                newLoc.Offset(0, b.Height + 5);
                this.ContactTabNamePanel.Controls.Add(b);
                b.Click += new EventHandler(b_Click);


                j++;
                counter++;
            }

            materialLabel1.Text = Convert.ToString(counter) + " " + "Contacts Found";
        }
Пример #3
0
        public actionDialogProject(list_project listProject, int IdProjeto)
        {
            Label label = new Label();

            label.Text     = "Oque você deseja fazer a seguir?";
            label.Font     = new Font("Arial", 10, FontStyle.Regular);
            label.Size     = new Size(230, 25);
            label.Location = new Point(35, 20);
            this.Controls.Add(label);

            MaterialFlatButton edit = new MaterialFlatButton();

            edit.Text = "Editar";
            // adiciona ação ao clique do button
            edit.Click   += delegate(object sender, EventArgs args) { this.Close(); listProject.retornaEdicao(IdProjeto); };
            edit.Location = new Point(10, 50);
            this.Controls.Add(edit);

            MaterialFlatButton taskList = new MaterialFlatButton();

            taskList.Text = "Tarefas";
            // adiciona ação ao clique do button
            taskList.Click   += delegate(object sender, EventArgs args) { this.Close(); listProject.retornaTarefa(IdProjeto); };
            taskList.Location = new Point(85, 50);
            this.Controls.Add(taskList);

            MaterialRaisedButton delete = new MaterialRaisedButton();

            delete.Text = "Remover";
            // adiciona ação ao clique do button
            delete.Click   += delegate(object sender, EventArgs args) { this.Close(); listProject.removerProjeto(IdProjeto); };
            delete.Location = new Point(190, 50);
            this.Controls.Add(delete);
        }
Пример #4
0
        private static void SetEventosBoton()
        {
            MaterialRaisedButton btnContinue = (MaterialRaisedButton)GetAll(formTemp, typeof(MaterialRaisedButton)).Where(a => a.Name == "btnContinuar").FirstOrDefault();

            btnContinue.MouseClick += new MouseEventHandler(ConfirmarReserva);

            Label btnClose = (Label)GetAll(formTemp, typeof(Label)).Where(d => d.Name == "btnCerrar").FirstOrDefault();

            btnClose.MouseClick += new MouseEventHandler(CancelarAsientoTotal);
            btnClose.BackColor   = ConstanteColor.GetPrimaryColor();


            Label btnMiminizar = (Label)GetAll(formTemp, typeof(Label)).Where(d => d.Name == "btnMiminizar").FirstOrDefault();

            btnMiminizar.MouseClick += new MouseEventHandler(MiminizarTeatro);
            btnMiminizar.BackColor   = ConstanteColor.GetPrimaryColor();

            Panel pnlPrincipal = (Panel)GetAll(formTemp, typeof(Panel)).Where(d => d.Name == "pnlPrincipal").FirstOrDefault();

            pnlPrincipal.BackColor = ConstanteColor.GetPrimaryColor();

            Panel pnlSecundary = (Panel)GetAll(formTemp, typeof(Panel)).Where(d => d.Name == "pnlSecundary").FirstOrDefault();

            pnlSecundary.BackColor = ConstanteColor.GetSecundaryColor();

            MaterialLabel tituloX = (MaterialLabel)GetAll(formTemp, typeof(MaterialLabel)).Where(d => d.Name == "lblTituloTeatro").FirstOrDefault();

            tituloX.ForeColor = System.Drawing.Color.White;

            tiempo = (Label)GetAll(formTemp, typeof(Label)).Where(d => d.Name == "lblTiempo").FirstOrDefault();
        }
Пример #5
0
        private void RadioF_CheckedChanged(object sender, EventArgs e)
        {
            DataNode[] dn = new DataNode[10];
            RadioA.Text = RadioA.Text.ToUpper();
            dn          = m.GetContactByIndex('F');

            Point newLoc = new Point(5, 5);
            int   i      = 0;

            this.ContactTabNamePanel.Controls.Clear();
            this.ContactTabDetailPanel.Controls.Clear();
            if (dn == null)
            {
                MessageBox.Show("Error", "No Contacts Found", MessageBoxButtons.OK);
            }
            // Set whatever you want for initial location

            while (dn[i] != null)

            {
                MaterialRaisedButton b = new MaterialRaisedButton();

                b.Visible   = true;
                b.Text      = dn[i].storeFname + " " + dn[i].storeLname;
                b.BackColor = Color.White;
                b.Size      = new Size(200, 50);
                b.Location  = newLoc;
                newLoc.Offset(0, b.Height + 5);
                this.ContactTabNamePanel.Controls.Add(b);
                b.Click += new EventHandler(b_Click);
                b.Show();
                i++;
            }
        }
        public string ShowDialog(string caption)
        {
            
            Form2 prompt = new Form2()
            {
                Width = 181,
                Height = 145,
                Text = caption,
                StartPosition = FormStartPosition.CenterScreen
            };

            MaterialRaisedButton btnEnviar = new MaterialRaisedButton() { Text = "Entrar", DialogResult = DialogResult.OK };
            btnEnviar.Location = new Point(52, 96);
            btnEnviar.Click += (sender, e) => { prompt.Close(); };
            prompt.Controls.Add(btnEnviar);
            btnEnviar.TabIndex = 2;

            MaterialSingleLineTextField txtSenha = new MaterialSingleLineTextField() { Width=126 };
            txtSenha.Location = new Point(24,67);
            txtSenha.KeyDown += (sender, e) => { if (e.KeyData == Keys.Enter) btnEnviar.PerformClick(); };
            txtSenha.PasswordChar = '*';
            prompt.Controls.Add(txtSenha);
            txtSenha.TabIndex = 1;
            

            return prompt.ShowDialog() == DialogResult.OK ? txtSenha.Text : "";
        }
Пример #7
0
        private void temp_Click(object sender, EventArgs e)
        {
            MaterialRaisedButton btn = (MaterialRaisedButton)sender;

            //Dro.Remove(btn);
            RedrawDroneTable();
        }
 private void InitializeComponent()
 {
     // Auto generated by the designer
     notNowButton       = new MaterialRaisedButton();
     this.updateButton  = new MaterialRaisedButton();
     this.changeLogText = new MaterialLabel();
     this.SuspendLayout();
     //
     // notNowButton
     //
     this.notNowButton.Depth      = 0;
     this.notNowButton.Location   = new Point(12, 257);
     this.notNowButton.MouseState = MouseState.HOVER;
     this.notNowButton.Name       = "notNowButton";
     this.notNowButton.Primary    = true;
     this.notNowButton.Size       = new Size(120, 31);
     this.notNowButton.TabIndex   = 0;
     this.notNowButton.Text       = "Not Now";
     this.notNowButton.UseVisualStyleBackColor = true;
     //
     // updateButton
     //
     this.updateButton.Depth      = 0;
     this.updateButton.Location   = new Point(368, 257);
     this.updateButton.MouseState = MouseState.HOVER;
     this.updateButton.Name       = "updateButton";
     this.updateButton.Primary    = true;
     this.updateButton.Size       = new Size(120, 31);
     this.updateButton.TabIndex   = 1;
     this.updateButton.Text       = "Update";
     this.updateButton.UseVisualStyleBackColor = true;
     //
     // changeLogText
     //
     this.changeLogText.Depth      = 0;
     this.changeLogText.Font       = new Font("Roboto", 11F);
     this.changeLogText.ForeColor  = Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.changeLogText.Location   = new Point(12, 75);
     this.changeLogText.MouseState = MouseState.HOVER;
     this.changeLogText.Name       = "changeLogText";
     this.changeLogText.Size       = new Size(476, 160);
     this.changeLogText.TabIndex   = 2;
     this.changeLogText.Text       = "changeLogText";
     //
     // UpdateDialog
     //
     // Default ClientSize
     this.ClientSize = new Size(500, 300);
     this.Controls.Add(this.changeLogText);
     this.Controls.Add(this.updateButton);
     this.Controls.Add(this.notNowButton);
     this.Name = "UpdateDialog";
     this.Text = "An Update is Available";
     this.Icon = Properties.Resources.MainIcon;
     this.ResumeLayout(false);
 }
Пример #9
0
        public void loadFood()
        {
            List <Food> FoodList = FoodDAO.Instance.listFood(); // tạo danh sách thức ăn thông qua lớp

            foreach (Food item in FoodList)
            {
                MaterialRaisedButton btn = new MaterialRaisedButton();     //khởi tạo một reisedbutton
                btn.Text   = item.Name + Environment.NewLine + item.Price; // gán tên và giá cho button text
                btn.Cursor = Cursors.Hand;                                 // kkhi chỉ vào button có hình bàn tay
                btn.Size   = new Size(95, 60);                             //chỉnh kích thước của button
                flpFood.Controls.Add(btn);
            }
        }
Пример #10
0
        private void newButton_Click(object sender, EventArgs e)
        {
            MaterialRaisedButton pressedButton = (MaterialRaisedButton)sender;

            // create form for pressed button
            foreach (RoomDAO room in rooms)
            {
                if (room.Id.Equals(pressedButton.Text))
                {
                    Room roomForm = new Room(room);
                    roomForm.ShowDialog();
                    break;
                }
            }
        }
Пример #11
0
        public void loadFood(string foodCategoryId)
        {
            List <Food> FoodList = FoodDAO.Instance.listFood(foodCategoryId); // tạo danh sách thức ăn thông qua lớp

            foreach (Food item in FoodList)
            {
                MaterialRaisedButton btn = new MaterialRaisedButton();         //khởi tạo một reisedbutton
                btn.Text       = item.Name + Environment.NewLine + item.Price; // gán tên và giá cho button text
                btn.Cursor     = Cursors.Hand;                                 // kkhi chỉ vào button có hình bàn tay
                btn.Size       = new Size(95, 60);                             //chỉnh kích thước của button
                btn.Click     += new EventHandler(btnFood_Click);              //khởi tạo event khi nhấn chuột trái
                btn.MouseDown += new MouseEventHandler(btnFood_MouseClick);    //khởi tạo sự kiện khi nhắn vào món ăn
                btn.Tag        = item;                                         // gắn tag cho button
                flpFood.Controls.Add(btn);                                     // thêm button vào flow layout category
            }
        }
Пример #12
0
        public void loadFoodCategory(FlowLayoutPanel flp)
        {
            List <FoodCategory> FoodCategoryList = FoodCategoryDAO.Instance.LoadFoodCategoryList();

            // tạo danh sách category thông qua DAO
            foreach (FoodCategory item in FoodCategoryList)
            {
                MaterialRaisedButton btn = new MaterialRaisedButton(); // khởi tạo một raisedButton
                btn.Text   = item.Name;                                // set tên của button
                btn.Cursor = Cursors.Hand;                             // khi chỉ vào button có hình bàn tay
                btn.Size   = new Size(80, 50);                         // kích thước button
                btn.Click += new EventHandler(btnFoodCategory_Click);
                ;                                                      // hàm này dùng để khởi tạo event cho mỗi button
                btn.Tag = item;                                        // gắn đối tượng item cho mỗi btn , để dễ quản lý
                flp.Controls.Add(btn);                                 // thêm button vào flow layout category
            }
        }
Пример #13
0
        private MaterialRaisedButton createButtonKembalikan(String category, int i)
        {
            MaterialRaisedButton button = new MaterialRaisedButton();

            button.Depth      = 0;
            button.Location   = new System.Drawing.Point(350, 49);
            button.MouseState = MaterialSkin.MouseState.HOVER;
            button.Name       = "buttonKembalikan" + category + i;
            button.Primary    = true;
            button.Size       = new System.Drawing.Size(95, 36);
            button.TabIndex   = 2;
            button.Text       = "Kembalikan";
            button.UseVisualStyleBackColor = true;
            button.Click += new EventHandler((sender, e) => kembalikan(sender, e, i));

            return(button);
        }
Пример #14
0
        public actionDialog(list_task listagem, int IdProjeto, string Status)
        {
            Label label = new Label();

            label.Text     = "Oque você deseja fazer a seguir?";
            label.Font     = new Font("Arial", 10, FontStyle.Regular);
            label.Size     = new Size(230, 25);
            label.Location = new Point(35, 20);
            this.Controls.Add(label);

            if (Status == "DONE")
            {
                MaterialFlatButton complete = new MaterialFlatButton();
                complete.Text = "Refazer";
                // adiciona ação ao clique do button
                complete.Click   += delegate(object sender, EventArgs args) { this.Close(); listagem.alteraStatusTarefa(IdProjeto, "TODO"); };
                complete.Location = new Point(85, 50);
                this.Controls.Add(complete);
            }
            else
            {
                MaterialFlatButton complete = new MaterialFlatButton();
                complete.Text = "Completar";
                // adiciona ação ao clique do button
                complete.Click   += delegate(object sender, EventArgs args) { this.Close(); listagem.alteraStatusTarefa(IdProjeto, "DONE"); };
                complete.Location = new Point(85, 50);
                this.Controls.Add(complete);
            }

            MaterialFlatButton edit = new MaterialFlatButton();

            edit.Text = "Editar";
            // adiciona ação ao clique do button
            edit.Click   += delegate(object sender, EventArgs args) { this.Close(); /* Chamar tela de edição passando o id */ };
            edit.Location = new Point(10, 50);
            this.Controls.Add(edit);

            MaterialRaisedButton delete = new MaterialRaisedButton();

            delete.Text = "Remover";
            // adiciona ação ao clique do button
            delete.Click   += delegate(object sender, EventArgs args) { this.Close(); listagem.removerTarefa(IdProjeto); };
            delete.Location = new Point(190, 50);
            this.Controls.Add(delete);
        }
Пример #15
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="mainForm"></param>
        /// <param name="progressFile"></param>
        /// <param name="progressAll"></param>
        /// <param name="progressText"></param>
        /// <param name="progressDetails"></param>
        /// <param name="progressCurFile"></param>
        /// <param name="launcherButton"></param>
        public Installer(MainForm2 mainForm, Windows7ProgressBar progressFile, Windows7ProgressBar progressAll, Label progressText, Label progressDetails, Label progressCurFile, DoubleBufferFlowPanel flowpanelAddonPacks, PictureBox cancelButton,
                         MaterialSingleLineTextField gamePathBox, MaterialSingleLineTextField ts3PathBox, MaterialSingleLineTextField addonsPathBox, PictureBox gamePathErase, PictureBox ts3PathErase, PictureBox addonsPathErase, PictureBox gamePathFind, PictureBox ts3PathFind, PictureBox addonsPathFind,
                         MaterialRaisedButton ts3Plugin, MaterialFlatButton repoValidateBtn)
        {
            this.activeForm = "mainForm";
            this.mainForm   = mainForm;

            // define controls
            this.progressFile        = progressFile;
            this.progressAll         = progressAll;
            this.progressText        = progressText;
            this.progressDetails     = progressDetails;
            this.progressCurFile     = progressCurFile;
            this.flowpanelAddonPacks = flowpanelAddonPacks;
            this.cancelButton        = cancelButton;
            this.repoValidateBtn     = repoValidateBtn;

            // define controls (directory fields)
            this.gamePathBox   = gamePathBox;
            this.gamePathErase = gamePathErase;
            this.gamePathFind  = gamePathFind;

            this.ts3PathBox   = ts3PathBox;
            this.ts3PathErase = ts3PathErase;
            this.ts3PathFind  = ts3PathFind;

            this.addonsPathBox   = addonsPathBox;
            this.addonsPathErase = addonsPathErase;
            this.addonsPathFind  = addonsPathFind;

            // define controls (toolstrip menu items)
            this.ts3Plugin = ts3Plugin;

            // define background worker
            this.installFiles.DoWork             += InstallFiles_DoWork;
            this.installFiles.RunWorkerCompleted += InstallFiles_RunWorkerCompleted;

            this.validateFiles.DoWork             += ValidateFiles_DoWork;
            this.validateFiles.RunWorkerCompleted += ValidateFiles_RunWorkerCompleted;

            // define timer
            this.delayLaunch.Interval = 2000;
            this.delayLaunch.Tick    += DelayLaunch_Tick;
        }
Пример #16
0
//------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        private void Form1_Shown(object sender, EventArgs e)
        {
            try
            {
                AllPagesTabControl.TabPages.Clear();
                CurPageControl  = new PageControl(AllPagesTabControl);
                ProgramSettings = new Settings();
                ProgramSettings.Load();
                InsertionCheckBox.Checked          = ProgramSettings.UseInsertion;
                DoubleSidedCheckBox.Checked        = ProgramSettings.UseDoubleSided;
                GreyCheckBox.Checked               = ProgramSettings.UseGrey;
                CheckIfEmptyCheckBox.Checked       = ProgramSettings.CheckIfEmpty;
                EdgeDetectionCheckBox.Checked      = ProgramSettings.UseEdgeDetection;
                RotationCorrectionCheckBox.Checked = ProgramSettings.UseRotationCorrection;
                VendorToolCheckBox.Checked         = ProgramSettings.UseVendorTool;
                this.Size = new Size(ProgramSettings.SizeX, ProgramSettings.SizeY);
                Form1_ResizeEnd(null, null);
                this.Text     = "Scanner Tool  (v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() + ")";
                AllButtons    = new MaterialRaisedButton[] { ScannerSelectionButton, ResetScanButton, AddScanButton, ScanAndSendFastButton, ScanAndSaveFastButton, SendButton, SaveButton, MovePageForwardButton, MovePageBackButton, RotateImageButton, DeletePageButton };
                AllCheckBoxes = new MaterialCheckBox[] { InsertionCheckBox, DoubleSidedCheckBox, GreyCheckBox, EdgeDetectionCheckBox, RotationCorrectionCheckBox, CheckIfEmptyCheckBox, VendorToolCheckBox };
                try
                {
                    olook = new Outlook.Application();
                }
                catch
                {
                    MessageBox.Show("Ihr Outlook wurde nicht ordnungsgemäß installiert.");
                    Environment.Exit(1075);
                }
                ResetTwain(0);
                if (!string.IsNullOrEmpty(ProgramSettings.ScannerProductName))
                {
                    TwainLib.SelectSource(ProgramSettings.ScannerProductName);
                }
                GC.Collect();
            }
            catch (Exception ex)
            {
                Program.MeldeFehler(ex.Message + "\n" + ex.StackTrace);
                Environment.Exit(1);
            }
        }
        public SimuleerSchermcs(List <Coupe> listCoupe, Locomotief loco)
        {
            InitializeComponent();

            // Create a material theme manager and add the form to manage (this)
            MaterialSkinManager materialSkinManager = MaterialSkinManager.Instance;

            materialSkinManager.AddFormToManage(this);
            materialSkinManager.Theme = MaterialSkinManager.Themes.LIGHT;

            // Configure color schema
            materialSkinManager.ColorScheme = new ColorScheme(
                Primary.Yellow700, Primary.Blue800,
                Primary.Yellow600, Accent.Blue400,
                TextShade.BLACK
                );

            coupeList  = listCoupe;
            locomotief = loco;

            xPositieLabels = 12;
            yPositieLabels = 107;

            xPositieNumeric = 115;
            yPositieNumeric = 107;

            xPositieButton = 12;
            yPositieButton = yPositieLabels;

            controlCounter = 1;

            ControlsAanmaken();

            button = new MaterialRaisedButton
            {
                Location = new Point(xPositieButton, yPositieButton),
                Text     = ("Simuleer")
            };

            button.Click += new EventHandler(button_Click);
            this.Controls.Add(button);
        }
Пример #18
0
        private void materialRaisedButton1_Click(object sender, EventArgs e)
        {
            DataNode[] s = m.SearchContact(materialSingleLineTextField1.Text);

            Point newLoc = new Point(5, 5);
            int   l      = 0;

            this.ContactTabNamePanel.Controls.Clear();
            while (s[l] != null)
            {
                MaterialRaisedButton b = new MaterialRaisedButton();
                b.Visible   = true;
                b.Text      = s[l].storeFname + " " + s[l].storeLname;
                b.BackColor = Color.White;
                b.Size      = new Size(200, 50);
                b.Location  = newLoc;
                newLoc.Offset(0, b.Height + 5);
                this.ContactTabNamePanel.Controls.Add(b);
                b.Click += new EventHandler(b_Click);
                l++;
            }
        }
Пример #19
0
        private MaterialRaisedButton createButtonPesan(String stock, String category, int i)
        {
            MaterialRaisedButton button = new MaterialRaisedButton();

            button.Depth      = 0;
            button.Location   = new System.Drawing.Point(357, 49);
            button.Margin     = new System.Windows.Forms.Padding(15);
            button.MouseState = MaterialSkin.MouseState.HOVER;
            button.Name       = "buttonPesan" + category + i;
            button.Primary    = true;
            button.Size       = new System.Drawing.Size(73, 36);
            button.Text       = "Pesan";
            button.TabIndex   = 2;
            button.UseVisualStyleBackColor = true;
            button.Click += new EventHandler((sender, e) => pesan(sender, e, i));

            if (stock.Equals("0"))
            {
                button.Enabled = false;
            }

            return(button);
        }
Пример #20
0
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmGenerarFichaMatricula));
     this.TXTBUSCALUMN   = new System.Windows.Forms.TextBox();
     this.label1         = new System.Windows.Forms.Label();
     this.dataGridView1  = new System.Windows.Forms.DataGridView();
     this.dataGridView2  = new System.Windows.Forms.DataGridView();
     this.label2         = new System.Windows.Forms.Label();
     this.label3         = new System.Windows.Forms.Label();
     this.label4         = new System.Windows.Forms.Label();
     this.label5         = new System.Windows.Forms.Label();
     this.label6         = new System.Windows.Forms.Label();
     this.label7         = new System.Windows.Forms.Label();
     this.label8         = new System.Windows.Forms.Label();
     this.errorProvider1 = new System.Windows.Forms.ErrorProvider(this.components);
     this.pictureBox1    = new System.Windows.Forms.PictureBox();
     this.panel1         = new System.Windows.Forms.Panel();
     this.BTNGENERAR     = new MaterialSkin.Controls.MaterialRaisedButton();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // TXTBUSCALUMN
     //
     this.TXTBUSCALUMN.Location = new System.Drawing.Point(8, 38);
     this.TXTBUSCALUMN.Name     = "TXTBUSCALUMN";
     this.TXTBUSCALUMN.Size     = new System.Drawing.Size(543, 20);
     this.TXTBUSCALUMN.TabIndex = 0;
     this.TXTBUSCALUMN.KeyUp   += new System.Windows.Forms.KeyEventHandler(this.TXTBUSCALUMN_KeyUp);
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(8, 15);
     this.label1.Name     = "label1";
     this.label1.Size     = new System.Drawing.Size(100, 13);
     this.label1.TabIndex = 1;
     this.label1.Text     = "BUSCAR ALUMNO";
     //
     // dataGridView1
     //
     this.dataGridView1.AllowUserToAddRows          = false;
     this.dataGridView1.AllowUserToDeleteRows       = false;
     this.dataGridView1.AllowUserToResizeRows       = false;
     this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView1.Location           = new System.Drawing.Point(8, 79);
     this.dataGridView1.Name               = "dataGridView1";
     this.dataGridView1.ReadOnly           = true;
     this.dataGridView1.RowTemplate.Height = 24;
     this.dataGridView1.Size               = new System.Drawing.Size(657, 150);
     this.dataGridView1.TabIndex           = 2;
     this.dataGridView1.CellClick         += new System.Windows.Forms.DataGridViewCellEventHandler(this.GridViewNombres_CellClick);
     //
     // dataGridView2
     //
     this.dataGridView2.AllowUserToAddRows          = false;
     this.dataGridView2.AllowUserToDeleteRows       = false;
     this.dataGridView2.AllowUserToResizeRows       = false;
     this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.dataGridView2.Location           = new System.Drawing.Point(11, 280);
     this.dataGridView2.Name               = "dataGridView2";
     this.dataGridView2.ReadOnly           = true;
     this.dataGridView2.RowTemplate.Height = 24;
     this.dataGridView2.Size               = new System.Drawing.Size(831, 122);
     this.dataGridView2.TabIndex           = 4;
     this.dataGridView2.CellClick         += new System.Windows.Forms.DataGridViewCellEventHandler(this.GridViewMatriculas_CellClick);
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(8, 260);
     this.label2.Name     = "label2";
     this.label2.Size     = new System.Drawing.Size(237, 13);
     this.label2.TabIndex = 5;
     this.label2.Text     = "MATRICULAS REALIZADAS POR EL ALUMNO";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(290, 433);
     this.label3.Name     = "label3";
     this.label3.Size     = new System.Drawing.Size(132, 13);
     this.label3.TabIndex = 6;
     this.label3.Text     = "CODIGO DE MATRICULA";
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(445, 433);
     this.label4.Name     = "label4";
     this.label4.Size     = new System.Drawing.Size(56, 13);
     this.label4.TabIndex = 7;
     this.label4.Text     = "XXXXXXX";
     //
     // label5
     //
     this.label5.AutoSize = true;
     this.label5.Location = new System.Drawing.Point(8, 432);
     this.label5.Name     = "label5";
     this.label5.Size     = new System.Drawing.Size(67, 13);
     this.label5.TabIndex = 9;
     this.label5.Text     = "ID ALUMNO";
     //
     // label6
     //
     this.label6.AutoSize = true;
     this.label6.Location = new System.Drawing.Point(91, 433);
     this.label6.Name     = "label6";
     this.label6.Size     = new System.Drawing.Size(28, 13);
     this.label6.TabIndex = 10;
     this.label6.Text     = "XXX";
     //
     // label7
     //
     this.label7.AutoSize = true;
     this.label7.Location = new System.Drawing.Point(759, 231);
     this.label7.Name     = "label7";
     this.label7.Size     = new System.Drawing.Size(35, 13);
     this.label7.TabIndex = 11;
     this.label7.Text     = "XXXX";
     //
     // label8
     //
     this.label8.AutoSize = true;
     this.label8.Location = new System.Drawing.Point(671, 231);
     this.label8.Name     = "label8";
     this.label8.Size     = new System.Drawing.Size(49, 13);
     this.label8.TabIndex = 12;
     this.label8.Text     = "CODIGO";
     //
     // errorProvider1
     //
     this.errorProvider1.ContainerControl = this;
     //
     // pictureBox1
     //
     this.pictureBox1.Location = new System.Drawing.Point(671, 38);
     this.pictureBox1.Name     = "pictureBox1";
     this.pictureBox1.Size     = new System.Drawing.Size(171, 191);
     this.pictureBox1.TabIndex = 8;
     this.pictureBox1.TabStop  = false;
     //
     // panel1
     //
     this.panel1.BackColor   = System.Drawing.Color.White;
     this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
     this.panel1.Controls.Add(this.BTNGENERAR);
     this.panel1.Controls.Add(this.TXTBUSCALUMN);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.dataGridView1);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.dataGridView2);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.pictureBox1);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 64);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(874, 492);
     this.panel1.TabIndex = 16;
     //
     // BTNGENERAR
     //
     this.BTNGENERAR.Depth      = 0;
     this.BTNGENERAR.Location   = new System.Drawing.Point(588, 434);
     this.BTNGENERAR.MouseState = MaterialSkin.MouseState.HOVER;
     this.BTNGENERAR.Name       = "BTNGENERAR";
     this.BTNGENERAR.Primary    = true;
     this.BTNGENERAR.Size       = new System.Drawing.Size(233, 33);
     this.BTNGENERAR.TabIndex   = 16;
     this.BTNGENERAR.Text       = "GENERAR FICHA DE MATRICULA";
     this.BTNGENERAR.UseVisualStyleBackColor = true;
     this.BTNGENERAR.Click += new System.EventHandler(this.BTNGENERAR_Click);
     //
     // frmGenerarFichaMatricula
     //
     this.ClientSize = new System.Drawing.Size(874, 556);
     this.Controls.Add(this.panel1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.MaximizeBox   = false;
     this.Name          = "frmGenerarFichaMatricula";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "GENERAR FICHA DE MATRICULA";
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.errorProvider1)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
Пример #21
0
        } // Открытие формы параметров отчета

        private void OcenkaListBtn_Click(object sender, EventArgs e)
        {
            if (Height != 425)
            {
                Height = 425;
            }
            else
            {
                Height = 631;

                ListDiv = new MaterialDivider
                {
                    Location = new Point(-3, 427),
                    Size     = new Size(680, 10)
                };
                this.Controls.Add(ListDiv);

                SearchTextBox = new MaterialSingleLineTextField
                {
                    Location = new Point(464, 485),
                    Size     = new Size(170, 23),
                    Hint     = "Найти"
                }; // Поле ввода поиска
                this.Controls.Add(SearchTextBox);

                IdTextBox = new MaterialSingleLineTextField
                {
                    Location = new Point(451, 604),
                    Size     = new Size(29, 23),
                    Hint     = "Код",
                    Enabled  = false
                };
                this.Controls.Add(IdTextBox);

                this.Controls.Add(FiltrComBox);

                this.Controls.Add(OcenkaDtGrView);

                SearchBtn = new MaterialRaisedButton
                {
                    Text     = "Поиск",
                    Location = new Point(522, 451)
                }; // Кнопка поиска записи оценки
                SearchBtn.Click += new EventHandler(SearchBtn_Click);
                this.Controls.Add(SearchBtn);

                FiltrBtn = new MaterialRaisedButton
                {
                    Text     = "Фильтрация",
                    Location = new Point(499, 521)
                }; // Кнопка фильтрации записи оценки
                FiltrBtn.Click += new EventHandler(FiltrBtn_Click);
                this.Controls.Add(FiltrBtn);

                DeleteBtn = new MaterialRaisedButton
                {
                    Text     = "Удалить",
                    Location = new Point(517, 591)
                }; // Кнопка удаления записи оценки
                DeleteBtn.Click += new EventHandler(DeleteBtn_Click);
                this.Controls.Add(DeleteBtn);
            }
        }
Пример #22
0
        private async void Main_Form_Load(object sender, EventArgs e)
        {
            string        path    = @"C:\";
            string        subpath = @"Document";
            DirectoryInfo dirInfo = new DirectoryInfo(path);

            if (!dirInfo.Exists)
            {
                dirInfo.Create();
            }
            dirInfo.CreateSubdirectory(subpath);

            AuthBtn = new MaterialRaisedButton
            {
                Text     = "Авторизация",
                Location = new Point(542, 24)
            };
            AuthBtn.Click += new EventHandler(AuthBtn_Click);
            this.Controls.Add(AuthBtn);

            NameLbl = new MaterialLabel
            {
                Location = new Point(13, 83),
                Text     = "Добро пожаловать: " + Program.Name + "!",
                AutoSize = true
            };
            this.Controls.Add(NameLbl);

            DBBtn = new MaterialRaisedButton
            {
                Text     = "Справочники",
                Location = new Point(16, 125)
            };
            DBBtn.Click += new EventHandler(DBBtn_Click);
            this.Controls.Add(DBBtn);

            OcenkaPanelBtn = new MaterialRaisedButton
            {
                Text     = "Определить рейтинг сотрудника",
                Location = new Point(210, 125)
            };
            OcenkaPanelBtn.Click += new EventHandler(OcenkaPanelBtn_Click);
            this.Controls.Add(OcenkaPanelBtn);

            SettingBtn = new MaterialRaisedButton
            {
                Text     = "Настройки",
                Location = new Point(558, 75)
            };
            SettingBtn.Click += new EventHandler(SettingBtn_Click);
            this.Controls.Add(SettingBtn);

            ArhiveBtn = new MaterialRaisedButton
            {
                Text     = "Архивация",
                Location = new Point(558, 125)
            };
            ArhiveBtn.Click += new EventHandler(ArhiveBtn_Click);
            this.Controls.Add(ArhiveBtn);

            SotrComBox = new ComboBox()
            {
                Location = new Point(28, 219),
                Size     = new Size(121, 21),
            };

            FiltrComBox = new ComboBox()
            {
                Location = new Point(464, 561),
                Size     = new Size(171, 21)
            };

            OcenkaDtGrView = new DataGridView
            {
                Location = new Point(11, 451),
                Size     = new Size(420, 176),
                ReadOnly = true
            };
            OcenkaDtGrView.CellClick += OcenkaDtGrView_CellClick;

            LoadDataOcenka();
            string connectionString = @"Data Source = DESKTOP-EPNEITS; Initial Catalog = " + Program.server + "; Integrated Security = True";

            sqlConnection = new SqlConnection(connectionString);

            await sqlConnection.OpenAsync();

            Select_name_sotr_void();
            Select_ocenka_void();
            d_Edit.LoadDataCritery();
            SqlConnection connect = new SqlConnection(connectionString);
            string        podkl   = "SELECT * FROM critery";
            SqlCommand    com     = new SqlCommand(podkl, connect);

            connect.Open();
            SqlDataReader read = com.ExecuteReader();

            tabl.Load(read);

            podkl = "SELECT * FROM factory_critery";
            com   = new SqlCommand(podkl, connect);
            read  = com.ExecuteReader();
            tabl2.Load(read);

            Height = 168;
        }
Пример #23
0
        } // ООткрытие формы авторизации

        private void OcenkaPanelBtn_Click(object sender, EventArgs e)
        {
            if (Program.Dolj == "3")
            {
                MessageBox.Show("У вас нет доступа для данной функции!");
                OcenkaPanelBtn.Enabled = false;
            }
            else
            {
                if (Height != 168)
                {
                    Height = 168;

                    this.Controls.Remove(OcenkaDiv);
                    this.Controls.Remove(SotrLbl);
                    this.Controls.Remove(KritLbl);
                    this.Controls.Remove(NameKritLbl);
                    this.Controls.Remove(OcenSotrLbl);
                    this.Controls.Remove(PokazTextBox);
                    this.Controls.Remove(ContinueBtn);
                    this.Controls.Remove(CompleteBtn);
                    this.Controls.Remove(OcenkaListBtn);
                    this.Controls.Remove(SotrComBox);
                    this.Controls.Remove(OtchetBtn);
                    this.Controls.Remove(CancelBtn);
                }
                else
                {
                    Height = 425;

                    OcenkaDiv = new MaterialDivider
                    {
                        Location = new Point(-3, 176),
                        Size     = new Size(680, 10)
                    };
                    this.Controls.Add(OcenkaDiv);

                    SotrLbl = new MaterialLabel
                    {
                        Location = new Point(25, 197),
                        Text     = "Сотрудник",
                        AutoSize = true
                    };
                    this.Controls.Add(SotrLbl);

                    KritLbl = new MaterialLabel
                    {
                        Location = new Point(25, 275),
                        Text     = "Название критерия",
                        AutoSize = true
                    };
                    this.Controls.Add(KritLbl);

                    NameKritLbl = new MaterialLabel
                    {
                        Location = new Point(24, 301),
                        Text     = " ",
                        AutoSize = true
                    };
                    this.Controls.Add(NameKritLbl);

                    OcenSotrLbl = new MaterialLabel
                    {
                        Location = new Point(235, 274),
                        Text     = "Показатель сотрудника",
                        AutoSize = true
                    };
                    this.Controls.Add(OcenSotrLbl);

                    ResultLbl = new MaterialLabel
                    {
                        Location = new Point(24, 366),
                        Text     = "Результат оценки",
                        AutoSize = true
                    };


                    PokazTextBox = new MaterialSingleLineTextField
                    {
                        Location = new Point(239, 301),
                        Size     = new Size(175, 23)
                    };
                    PokazTextBox.KeyPress += PokazTextBox_KeyPress;
                    this.Controls.Add(PokazTextBox);

                    OtchetBtn = new MaterialRaisedButton
                    {
                        Text     = "Сформировать отчет",
                        Location = new Point(484, 358)
                    };
                    OtchetBtn.Click += new EventHandler(OtchetBtn_Click);
                    this.Controls.Add(OtchetBtn);

                    CancelBtn = new MaterialRaisedButton
                    {
                        Text     = "Отмена",
                        Location = new Point(587, 204)
                    };
                    CancelBtn.Click += new EventHandler(CancelBtn_Click);
                    this.Controls.Add(CancelBtn);

                    ContinueBtn = new MaterialRaisedButton
                    {
                        Text     = "Далее",
                        Location = new Point(491, 284)
                    };
                    ContinueBtn.Click += new EventHandler(ContinueBtn_Click);
                    this.Controls.Add(ContinueBtn);

                    CompleteBtn = new MaterialRaisedButton
                    {
                        Text     = "Завершить",
                        Location = new Point(561, 284)
                    };
                    CompleteBtn.Click += new EventHandler(CompleteBtn_Click);
                    this.Controls.Add(CompleteBtn);

                    OcenkaListBtn = new MaterialRaisedButton
                    {
                        Text     = "Просмотреть",
                        Location = new Point(293, 385)
                    };
                    OcenkaListBtn.Click += new EventHandler(OcenkaListBtn_Click);
                    this.Controls.Add(OcenkaListBtn);

                    this.Controls.Add(SotrComBox);

                    PokazTextBox.MaxLength = 1;

                    NameKritLbl.Text             = tabl.Rows[0].Field <string>(1).ToString();
                    this.NameKritLbl.MaximumSize = new Size(200, 100);
                }
            }
        }
Пример #24
0
 public void SetControlButtonsAndLabel(MaterialRaisedButton previusButton, MaterialRaisedButton nextButton, MaterialLabel pageNumberLabel)
 {
     this.previusPageButton = previusButton;
     this.nextPageButton    = nextButton;
     this.pageNumberLabel   = pageNumberLabel;
 }
Пример #25
0
 /// <summary>
 /// This method is required for Windows Forms designer support.
 /// Do not change the method contents inside the source code editor. The Forms designer might
 /// not be able to load this method if it was changed manually.
 /// </summary>
 private void InitializeComponent()
 {
     this.components        = new Container();
     this.tableLayoutPanel1 = new TableLayoutPanel();
     this.materialLabel1    = new MaterialLabel();
     this.materialLabel2    = new MaterialLabel();
     this.txtUsername       = new MaterialSingleLineTextField();
     this.tableLayoutPanel2 = new TableLayoutPanel();
     this.txtPassword       = new MaterialSingleLineTextField();
     this.btnShow           = new MaterialRaisedButton();
     this.tableLayoutPanel3 = new TableLayoutPanel();
     this.btnRegister       = new MaterialFlatButton();
     this.btnCancel         = new MaterialFlatButton();
     this.btnLogin          = new MaterialRaisedButton();
     this.emailError        = new ErrorProvider(this.components);
     this.tableLayoutPanel1.SuspendLayout();
     this.tableLayoutPanel2.SuspendLayout();
     this.tableLayoutPanel3.SuspendLayout();
     ((ISupportInitialize)(this.emailError)).BeginInit();
     this.SuspendLayout();
     //
     // tableLayoutPanel1
     //
     this.tableLayoutPanel1.BackColor   = System.Drawing.SystemColors.Control;
     this.tableLayoutPanel1.ColumnCount = 3;
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 23.4965F));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 76.5035F));
     this.tableLayoutPanel1.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 41F));
     this.tableLayoutPanel1.Controls.Add(this.materialLabel1, 0, 0);
     this.tableLayoutPanel1.Controls.Add(this.materialLabel2, 0, 1);
     this.tableLayoutPanel1.Controls.Add(this.txtUsername, 1, 0);
     this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 1, 1);
     this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel3, 0, 3);
     this.tableLayoutPanel1.Controls.Add(this.btnLogin, 0, 2);
     this.tableLayoutPanel1.Dock     = DockStyle.Fill;
     this.tableLayoutPanel1.Location = new System.Drawing.Point(5, 5);
     this.tableLayoutPanel1.Name     = "tableLayoutPanel1";
     this.tableLayoutPanel1.RowCount = 4;
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 25F));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 30F));
     this.tableLayoutPanel1.RowStyles.Add(new RowStyle(SizeType.Percent, 20F));
     this.tableLayoutPanel1.Size     = new System.Drawing.Size(456, 155);
     this.tableLayoutPanel1.TabIndex = 0;
     //
     // materialLabel1
     //
     this.materialLabel1.Depth      = 0;
     this.materialLabel1.Dock       = DockStyle.Right;
     this.materialLabel1.Font       = new System.Drawing.Font("Roboto", 11F);
     this.materialLabel1.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.materialLabel1.Location   = new System.Drawing.Point(0, 0);
     this.materialLabel1.Margin     = new Padding(0);
     this.materialLabel1.MouseState = MaterialSkin.MouseState.HOVER;
     this.materialLabel1.Name       = "materialLabel1";
     this.materialLabel1.Size       = new System.Drawing.Size(97, 38);
     this.materialLabel1.TabIndex   = 0;
     this.materialLabel1.Text       = "Email:";
     this.materialLabel1.TextAlign  = System.Drawing.ContentAlignment.MiddleRight;
     //
     // materialLabel2
     //
     this.materialLabel2.Depth      = 0;
     this.materialLabel2.Dock       = DockStyle.Right;
     this.materialLabel2.Font       = new System.Drawing.Font("Roboto", 11F);
     this.materialLabel2.ForeColor  = System.Drawing.Color.FromArgb(((int)(((byte)(222)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))), ((int)(((byte)(0)))));
     this.materialLabel2.Location   = new System.Drawing.Point(3, 38);
     this.materialLabel2.MouseState = MaterialSkin.MouseState.HOVER;
     this.materialLabel2.Name       = "materialLabel2";
     this.materialLabel2.Size       = new System.Drawing.Size(91, 38);
     this.materialLabel2.TabIndex   = 1;
     this.materialLabel2.Text       = "Password:"******"";
     this.txtUsername.Location              = new System.Drawing.Point(100, 3);
     this.txtUsername.MouseState            = MaterialSkin.MouseState.HOVER;
     this.txtUsername.Name                  = "txtUsername";
     this.txtUsername.PasswordChar          = '\0';
     this.txtUsername.SelectedText          = "";
     this.txtUsername.SelectionLength       = 0;
     this.txtUsername.SelectionStart        = 0;
     this.txtUsername.Size                  = new System.Drawing.Size(311, 23);
     this.txtUsername.TabIndex              = 1;
     this.txtUsername.Text                  = "*****@*****.**";
     this.txtUsername.UseSystemPasswordChar = false;
     this.txtUsername.Validating           += new CancelEventHandler(this.TxtUsernameValidating);
     //
     // tableLayoutPanel2
     //
     this.tableLayoutPanel2.ColumnCount = 2;
     this.tableLayoutPanel1.SetColumnSpan(this.tableLayoutPanel2, 2);
     this.tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 76.25698F));
     this.tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 23.74302F));
     this.tableLayoutPanel2.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 20F));
     this.tableLayoutPanel2.Controls.Add(this.txtPassword, 0, 0);
     this.tableLayoutPanel2.Controls.Add(this.btnShow, 1, 0);
     this.tableLayoutPanel2.Dock     = DockStyle.Fill;
     this.tableLayoutPanel2.Location = new System.Drawing.Point(97, 38);
     this.tableLayoutPanel2.Margin   = new Padding(0);
     this.tableLayoutPanel2.Name     = "tableLayoutPanel2";
     this.tableLayoutPanel2.RowCount = 1;
     this.tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
     this.tableLayoutPanel2.RowStyles.Add(new RowStyle(SizeType.Absolute, 38F));
     this.tableLayoutPanel2.Size     = new System.Drawing.Size(359, 38);
     this.tableLayoutPanel2.TabIndex = 3;
     //
     // txtPassword
     //
     this.txtPassword.CausesValidation      = false;
     this.txtPassword.Depth                 = 0;
     this.txtPassword.Dock                  = DockStyle.Fill;
     this.txtPassword.Hint                  = "";
     this.txtPassword.Location              = new System.Drawing.Point(3, 3);
     this.txtPassword.MouseState            = MaterialSkin.MouseState.HOVER;
     this.txtPassword.Name                  = "txtPassword";
     this.txtPassword.PasswordChar          = '\0';
     this.txtPassword.SelectedText          = "";
     this.txtPassword.SelectionLength       = 0;
     this.txtPassword.SelectionStart        = 0;
     this.txtPassword.Size                  = new System.Drawing.Size(267, 23);
     this.txtPassword.TabIndex              = 0;
     this.txtPassword.Text                  = "123";
     this.txtPassword.UseSystemPasswordChar = true;
     //
     // btnShow
     //
     this.btnShow.CausesValidation        = false;
     this.btnShow.Depth                   = 0;
     this.btnShow.Dock                    = DockStyle.Fill;
     this.btnShow.Location                = new System.Drawing.Point(276, 3);
     this.btnShow.MouseState              = MaterialSkin.MouseState.HOVER;
     this.btnShow.Name                    = "btnShow";
     this.btnShow.Primary                 = true;
     this.btnShow.Size                    = new System.Drawing.Size(80, 32);
     this.btnShow.TabIndex                = 1;
     this.btnShow.Text                    = "Show";
     this.btnShow.UseVisualStyleBackColor = true;
     this.btnShow.MouseDown              += new MouseEventHandler(this.BtnShowMouseDown);
     this.btnShow.MouseUp                += new MouseEventHandler(this.BtnShowMouseUp);
     //
     // tableLayoutPanel3
     //
     this.tableLayoutPanel3.ColumnCount = 2;
     this.tableLayoutPanel1.SetColumnSpan(this.tableLayoutPanel3, 3);
     this.tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
     this.tableLayoutPanel3.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F));
     this.tableLayoutPanel3.Controls.Add(this.btnRegister, 0, 0);
     this.tableLayoutPanel3.Controls.Add(this.btnCancel, 1, 0);
     this.tableLayoutPanel3.Dock     = DockStyle.Fill;
     this.tableLayoutPanel3.Location = new System.Drawing.Point(0, 122);
     this.tableLayoutPanel3.Margin   = new Padding(0);
     this.tableLayoutPanel3.Name     = "tableLayoutPanel3";
     this.tableLayoutPanel3.RowCount = 1;
     this.tableLayoutPanel3.RowStyles.Add(new RowStyle(SizeType.Percent, 50F));
     this.tableLayoutPanel3.Size     = new System.Drawing.Size(456, 33);
     this.tableLayoutPanel3.TabIndex = 7;
     //
     // btnRegister
     //
     this.btnRegister.AutoSize                = true;
     this.btnRegister.AutoSizeMode            = AutoSizeMode.GrowAndShrink;
     this.btnRegister.CausesValidation        = false;
     this.btnRegister.Depth                   = 0;
     this.btnRegister.Dock                    = DockStyle.Fill;
     this.btnRegister.Location                = new System.Drawing.Point(0, 0);
     this.btnRegister.Margin                  = new Padding(0);
     this.btnRegister.MouseState              = MaterialSkin.MouseState.HOVER;
     this.btnRegister.Name                    = "btnRegister";
     this.btnRegister.Primary                 = false;
     this.btnRegister.Size                    = new System.Drawing.Size(228, 33);
     this.btnRegister.TabIndex                = 0;
     this.btnRegister.Text                    = "Register";
     this.btnRegister.UseVisualStyleBackColor = true;
     this.btnRegister.Click                  += new System.EventHandler(this.BtnRegisterClick);
     //
     // btnCancel
     //
     this.btnCancel.AutoSize                = true;
     this.btnCancel.AutoSizeMode            = AutoSizeMode.GrowAndShrink;
     this.btnCancel.CausesValidation        = false;
     this.btnCancel.Depth                   = 0;
     this.btnCancel.Dock                    = DockStyle.Fill;
     this.btnCancel.Location                = new System.Drawing.Point(228, 0);
     this.btnCancel.Margin                  = new Padding(0);
     this.btnCancel.MouseState              = MaterialSkin.MouseState.HOVER;
     this.btnCancel.Name                    = "btnCancel";
     this.btnCancel.Primary                 = false;
     this.btnCancel.Size                    = new System.Drawing.Size(228, 33);
     this.btnCancel.TabIndex                = 1;
     this.btnCancel.Text                    = "Cancel";
     this.btnCancel.UseVisualStyleBackColor = true;
     this.btnCancel.Click                  += new System.EventHandler(this.BtnCancelClick);
     //
     // btnLogin
     //
     this.tableLayoutPanel1.SetColumnSpan(this.btnLogin, 3);
     this.btnLogin.Depth      = 0;
     this.btnLogin.Dock       = DockStyle.Fill;
     this.btnLogin.Location   = new System.Drawing.Point(3, 79);
     this.btnLogin.MouseState = MaterialSkin.MouseState.HOVER;
     this.btnLogin.Name       = "btnLogin";
     this.btnLogin.Primary    = true;
     this.btnLogin.Size       = new System.Drawing.Size(450, 40);
     this.btnLogin.TabIndex   = 2;
     this.btnLogin.Text       = "Login";
     this.btnLogin.UseVisualStyleBackColor = true;
     this.btnLogin.Click += new System.EventHandler(this.BtnLoginClick);
     //
     // emailError
     //
     this.emailError.ContainerControl = this;
     this.emailError.Icon             = resource.cancel_1;
     //
     // LoginForm
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = AutoScaleMode.Font;
     this.BackColor           = System.Drawing.Color.FromArgb(((int)(((byte)(128)))), ((int)(((byte)(128)))), ((int)(((byte)(255)))));
     this.ClientSize          = new System.Drawing.Size(466, 165);
     this.Controls.Add(this.tableLayoutPanel1);
     this.FormBorderStyle = FormBorderStyle.None;
     this.Name            = "LoginForm";
     this.Padding         = new Padding(5);
     this.StartPosition   = FormStartPosition.CenterParent;
     this.Text            = "LoginForm";
     this.tableLayoutPanel1.ResumeLayout(false);
     this.tableLayoutPanel2.ResumeLayout(false);
     this.tableLayoutPanel3.ResumeLayout(false);
     this.tableLayoutPanel3.PerformLayout();
     ((ISupportInitialize)(this.emailError)).EndInit();
     this.ResumeLayout(false);
 }
Пример #26
0
 private void InitializeComponent()
 {
     this.materialRaisedButton1 = new MaterialRaisedButton();
     this.lblPrompt             = new MaterialLabel();
     this.pictureBox2           = new PictureBox();
     this.pictureBox1           = new PictureBox();
     ((ISupportInitialize)this.pictureBox2).BeginInit();
     ((ISupportInitialize)this.pictureBox1).BeginInit();
     base.SuspendLayout();
     this.materialRaisedButton1.Anchor     = AnchorStyles.Right | AnchorStyles.Bottom;
     this.materialRaisedButton1.Depth      = 0;
     this.materialRaisedButton1.Location   = new Point(0x123, 0xa5);
     this.materialRaisedButton1.MouseState = MouseState.HOVER;
     this.materialRaisedButton1.Name       = "materialRaisedButton1";
     this.materialRaisedButton1.Primary    = true;
     this.materialRaisedButton1.Size       = new Size(0xb6, 0x27);
     this.materialRaisedButton1.TabIndex   = 3;
     this.materialRaisedButton1.Text       = "OKAY";
     this.materialRaisedButton1.UseVisualStyleBackColor = true;
     this.materialRaisedButton1.Click += new EventHandler(this.materialRaisedButton1_Click);
     this.lblPrompt.Anchor             = AnchorStyles.Right | AnchorStyles.Left | AnchorStyles.Bottom | AnchorStyles.Top;
     this.lblPrompt.AutoSize           = true;
     this.lblPrompt.BackColor          = Color.Transparent;
     this.lblPrompt.Depth              = 0;
     this.lblPrompt.Font        = new Font("Roboto", 11f);
     this.lblPrompt.ForeColor   = Color.FromArgb(0xde, 0, 0, 0);
     this.lblPrompt.Location    = new Point(0x60, 0x4a);
     this.lblPrompt.MaximumSize = new Size(0x179, 0);
     this.lblPrompt.MouseState  = MouseState.HOVER;
     this.lblPrompt.Name        = "lblPrompt";
     this.lblPrompt.Padding     = new Padding(10);
     this.lblPrompt.Size        = new Size(20, 0x27);
     this.lblPrompt.TabIndex    = 1;
     this.pictureBox2.BackColor = Color.Transparent;
     this.pictureBox2.Image     = Resources.platinumcheats_wide_compressed_white;
     this.pictureBox2.Location  = new Point(0x131, 0x1c);
     this.pictureBox2.Name      = "pictureBox2";
     this.pictureBox2.Size      = new Size(0xa8, 0x20);
     this.pictureBox2.SizeMode  = PictureBoxSizeMode.Zoom;
     this.pictureBox2.TabIndex  = 4;
     this.pictureBox2.TabStop   = false;
     this.pictureBox1.BackColor = Color.Transparent;
     this.pictureBox1.Image     = Resources.shield;
     this.pictureBox1.Location  = new Point(12, 0x4a);
     this.pictureBox1.Name      = "pictureBox1";
     this.pictureBox1.Size      = new Size(0x4e, 80);
     this.pictureBox1.SizeMode  = PictureBoxSizeMode.Zoom;
     this.pictureBox1.TabIndex  = 0;
     this.pictureBox1.TabStop   = false;
     base.AutoScaleDimensions   = new SizeF(6f, 13f);
     base.AutoScaleMode         = AutoScaleMode.Font;
     base.ClientSize            = new Size(0x1e5, 0xd8);
     base.Controls.Add(this.pictureBox2);
     base.Controls.Add(this.materialRaisedButton1);
     base.Controls.Add(this.lblPrompt);
     base.Controls.Add(this.pictureBox1);
     base.MaximizeBox   = false;
     base.MinimizeBox   = false;
     base.Name          = "MaterialMessageBox";
     base.Sizable       = false;
     base.StartPosition = FormStartPosition.CenterScreen;
     this.Text          = "Error";
     base.TopMost       = true;
     base.Load         += new EventHandler(this.MaterialMessageBox_Load);
     ((ISupportInitialize)this.pictureBox2).EndInit();
     ((ISupportInitialize)this.pictureBox1).EndInit();
     base.ResumeLayout(false);
     base.PerformLayout();
 }
Пример #27
0
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(frmActualizarAlumno));
     this.panel1        = new System.Windows.Forms.Panel();
     this.BTNGUARDAR    = new MaterialSkin.Controls.MaterialRaisedButton();
     this.TXTEDAD       = new System.Windows.Forms.TextBox();
     this.label12       = new System.Windows.Forms.Label();
     this.label11       = new System.Windows.Forms.Label();
     this.TXTTELEFONO   = new System.Windows.Forms.TextBox();
     this.TXTCELULAR    = new System.Windows.Forms.TextBox();
     this.label10       = new System.Windows.Forms.Label();
     this.TXTCORREO     = new System.Windows.Forms.TextBox();
     this.label9        = new System.Windows.Forms.Label();
     this.DTNACIMIENTO  = new System.Windows.Forms.DateTimePicker();
     this.label8        = new System.Windows.Forms.Label();
     this.BTNFOTO       = new System.Windows.Forms.Button();
     this.CBSEXO        = new System.Windows.Forms.ComboBox();
     this.label7        = new System.Windows.Forms.Label();
     this.label6        = new System.Windows.Forms.Label();
     this.TXTDNI        = new System.Windows.Forms.TextBox();
     this.label5        = new System.Windows.Forms.Label();
     this.TXTNOMBRE     = new System.Windows.Forms.TextBox();
     this.ALUMNOIMAGE   = new System.Windows.Forms.PictureBox();
     this.label4        = new System.Windows.Forms.Label();
     this.TXTMATERNO    = new System.Windows.Forms.TextBox();
     this.label3        = new System.Windows.Forms.Label();
     this.TXTPATERNO    = new System.Windows.Forms.TextBox();
     this.LBLIDPERSONA  = new System.Windows.Forms.Label();
     this.BTNACTUALIZAR = new System.Windows.Forms.Button();
     this.GVALUMNOS     = new System.Windows.Forms.DataGridView();
     this.label2        = new System.Windows.Forms.Label();
     this.TXTALUSEARCH  = new System.Windows.Forms.TextBox();
     this.txtDireccion  = new System.Windows.Forms.TextBox();
     this.label1        = new System.Windows.Forms.Label();
     this.panel1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ALUMNOIMAGE)).BeginInit();
     ((System.ComponentModel.ISupportInitialize)(this.GVALUMNOS)).BeginInit();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.BackColor = System.Drawing.Color.White;
     this.panel1.Controls.Add(this.label1);
     this.panel1.Controls.Add(this.txtDireccion);
     this.panel1.Controls.Add(this.BTNGUARDAR);
     this.panel1.Controls.Add(this.TXTEDAD);
     this.panel1.Controls.Add(this.label12);
     this.panel1.Controls.Add(this.label11);
     this.panel1.Controls.Add(this.TXTTELEFONO);
     this.panel1.Controls.Add(this.TXTCELULAR);
     this.panel1.Controls.Add(this.label10);
     this.panel1.Controls.Add(this.TXTCORREO);
     this.panel1.Controls.Add(this.label9);
     this.panel1.Controls.Add(this.DTNACIMIENTO);
     this.panel1.Controls.Add(this.label8);
     this.panel1.Controls.Add(this.BTNFOTO);
     this.panel1.Controls.Add(this.CBSEXO);
     this.panel1.Controls.Add(this.label7);
     this.panel1.Controls.Add(this.label6);
     this.panel1.Controls.Add(this.TXTDNI);
     this.panel1.Controls.Add(this.label5);
     this.panel1.Controls.Add(this.TXTNOMBRE);
     this.panel1.Controls.Add(this.ALUMNOIMAGE);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.TXTMATERNO);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.TXTPATERNO);
     this.panel1.Controls.Add(this.LBLIDPERSONA);
     this.panel1.Controls.Add(this.BTNACTUALIZAR);
     this.panel1.Controls.Add(this.GVALUMNOS);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.TXTALUSEARCH);
     this.panel1.Dock     = System.Windows.Forms.DockStyle.Bottom;
     this.panel1.Location = new System.Drawing.Point(0, 63);
     this.panel1.Name     = "panel1";
     this.panel1.Size     = new System.Drawing.Size(953, 406);
     this.panel1.TabIndex = 71;
     //
     // BTNGUARDAR
     //
     this.BTNGUARDAR.Depth      = 0;
     this.BTNGUARDAR.Location   = new System.Drawing.Point(811, 334);
     this.BTNGUARDAR.MouseState = MaterialSkin.MouseState.HOVER;
     this.BTNGUARDAR.Name       = "BTNGUARDAR";
     this.BTNGUARDAR.Primary    = true;
     this.BTNGUARDAR.Size       = new System.Drawing.Size(123, 37);
     this.BTNGUARDAR.TabIndex   = 100;
     this.BTNGUARDAR.Text       = "GUARDAR";
     this.BTNGUARDAR.UseVisualStyleBackColor = true;
     this.BTNGUARDAR.Click += new System.EventHandler(this.BTNGUARDAR_Click);
     //
     // TXTEDAD
     //
     this.TXTEDAD.Enabled  = false;
     this.TXTEDAD.Location = new System.Drawing.Point(561, 199);
     this.TXTEDAD.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTEDAD.Name     = "TXTEDAD";
     this.TXTEDAD.ReadOnly = true;
     this.TXTEDAD.Size     = new System.Drawing.Size(138, 20);
     this.TXTEDAD.TabIndex = 97;
     //
     // label12
     //
     this.label12.AutoSize  = true;
     this.label12.ForeColor = System.Drawing.Color.Black;
     this.label12.Location  = new System.Drawing.Point(521, 202);
     this.label12.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label12.Name      = "label12";
     this.label12.Size      = new System.Drawing.Size(37, 13);
     this.label12.TabIndex  = 96;
     this.label12.Text      = "EDAD";
     //
     // label11
     //
     this.label11.AutoSize  = true;
     this.label11.ForeColor = System.Drawing.Color.Black;
     this.label11.Location  = new System.Drawing.Point(731, 277);
     this.label11.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label11.Name      = "label11";
     this.label11.Size      = new System.Drawing.Size(64, 13);
     this.label11.TabIndex  = 95;
     this.label11.Text      = "TELEFONO";
     //
     // TXTTELEFONO
     //
     this.TXTTELEFONO.Location = new System.Drawing.Point(798, 274);
     this.TXTTELEFONO.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTTELEFONO.Name     = "TXTTELEFONO";
     this.TXTTELEFONO.ReadOnly = true;
     this.TXTTELEFONO.Size     = new System.Drawing.Size(138, 20);
     this.TXTTELEFONO.TabIndex = 94;
     //
     // TXTCELULAR
     //
     this.TXTCELULAR.Location = new System.Drawing.Point(561, 274);
     this.TXTCELULAR.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTCELULAR.Name     = "TXTCELULAR";
     this.TXTCELULAR.ReadOnly = true;
     this.TXTCELULAR.Size     = new System.Drawing.Size(138, 20);
     this.TXTCELULAR.TabIndex = 93;
     //
     // label10
     //
     this.label10.AutoSize  = true;
     this.label10.ForeColor = System.Drawing.Color.Black;
     this.label10.Location  = new System.Drawing.Point(501, 277);
     this.label10.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label10.Name      = "label10";
     this.label10.Size      = new System.Drawing.Size(56, 13);
     this.label10.TabIndex  = 92;
     this.label10.Text      = "CELULAR";
     //
     // TXTCORREO
     //
     this.TXTCORREO.Location = new System.Drawing.Point(561, 251);
     this.TXTCORREO.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTCORREO.Name     = "TXTCORREO";
     this.TXTCORREO.ReadOnly = true;
     this.TXTCORREO.Size     = new System.Drawing.Size(376, 20);
     this.TXTCORREO.TabIndex = 91;
     //
     // label9
     //
     this.label9.AutoSize  = true;
     this.label9.ForeColor = System.Drawing.Color.Black;
     this.label9.Location  = new System.Drawing.Point(427, 254);
     this.label9.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label9.Name      = "label9";
     this.label9.Size      = new System.Drawing.Size(132, 13);
     this.label9.TabIndex  = 90;
     this.label9.Text      = "CORREO ELECTRONICO";
     //
     // DTNACIMIENTO
     //
     this.DTNACIMIENTO.Enabled       = false;
     this.DTNACIMIENTO.Format        = System.Windows.Forms.DateTimePickerFormat.Short;
     this.DTNACIMIENTO.Location      = new System.Drawing.Point(561, 176);
     this.DTNACIMIENTO.Margin        = new System.Windows.Forms.Padding(2);
     this.DTNACIMIENTO.Name          = "DTNACIMIENTO";
     this.DTNACIMIENTO.ShowUpDown    = true;
     this.DTNACIMIENTO.Size          = new System.Drawing.Size(248, 20);
     this.DTNACIMIENTO.TabIndex      = 89;
     this.DTNACIMIENTO.ValueChanged += new System.EventHandler(this.DTNACIMIENTO_ValueChanged);
     //
     // label8
     //
     this.label8.AutoSize  = true;
     this.label8.ForeColor = System.Drawing.Color.Black;
     this.label8.Location  = new System.Drawing.Point(430, 179);
     this.label8.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label8.Name      = "label8";
     this.label8.Size      = new System.Drawing.Size(130, 13);
     this.label8.TabIndex  = 88;
     this.label8.Text      = "FECHA DE NACIMIENTO";
     //
     // BTNFOTO
     //
     this.BTNFOTO.Enabled  = false;
     this.BTNFOTO.Location = new System.Drawing.Point(811, 216);
     this.BTNFOTO.Margin   = new System.Windows.Forms.Padding(2);
     this.BTNFOTO.Name     = "BTNFOTO";
     this.BTNFOTO.Size     = new System.Drawing.Size(124, 29);
     this.BTNFOTO.TabIndex = 87;
     this.BTNFOTO.Text     = "CAMBIAR FOTO";
     this.BTNFOTO.UseVisualStyleBackColor = true;
     this.BTNFOTO.Click += new System.EventHandler(this.BTNFOTO_Click);
     //
     // CBSEXO
     //
     this.CBSEXO.DropDownStyle     = System.Windows.Forms.ComboBoxStyle.DropDownList;
     this.CBSEXO.Enabled           = false;
     this.CBSEXO.FormattingEnabled = true;
     this.CBSEXO.Items.AddRange(new object[] {
         "MASCULINO",
         "FEMENINO"
     });
     this.CBSEXO.Location = new System.Drawing.Point(561, 152);
     this.CBSEXO.Margin   = new System.Windows.Forms.Padding(2);
     this.CBSEXO.Name     = "CBSEXO";
     this.CBSEXO.Size     = new System.Drawing.Size(248, 21);
     this.CBSEXO.TabIndex = 86;
     //
     // label7
     //
     this.label7.AutoSize  = true;
     this.label7.ForeColor = System.Drawing.Color.Black;
     this.label7.Location  = new System.Drawing.Point(521, 156);
     this.label7.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label7.Name      = "label7";
     this.label7.Size      = new System.Drawing.Size(36, 13);
     this.label7.TabIndex  = 85;
     this.label7.Text      = "SEXO";
     //
     // label6
     //
     this.label6.AutoSize  = true;
     this.label6.ForeColor = System.Drawing.Color.Black;
     this.label6.Location  = new System.Drawing.Point(523, 133);
     this.label6.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label6.Name      = "label6";
     this.label6.Size      = new System.Drawing.Size(35, 13);
     this.label6.TabIndex  = 84;
     this.label6.Text      = "D.N.I.";
     //
     // TXTDNI
     //
     this.TXTDNI.Location = new System.Drawing.Point(560, 129);
     this.TXTDNI.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTDNI.Name     = "TXTDNI";
     this.TXTDNI.ReadOnly = true;
     this.TXTDNI.Size     = new System.Drawing.Size(248, 20);
     this.TXTDNI.TabIndex = 83;
     //
     // label5
     //
     this.label5.AutoSize  = true;
     this.label5.ForeColor = System.Drawing.Color.Black;
     this.label5.Location  = new System.Drawing.Point(498, 109);
     this.label5.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label5.Name      = "label5";
     this.label5.Size      = new System.Drawing.Size(61, 13);
     this.label5.TabIndex  = 82;
     this.label5.Text      = "NOMBRES";
     //
     // TXTNOMBRE
     //
     this.TXTNOMBRE.Location = new System.Drawing.Point(560, 106);
     this.TXTNOMBRE.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTNOMBRE.Name     = "TXTNOMBRE";
     this.TXTNOMBRE.ReadOnly = true;
     this.TXTNOMBRE.Size     = new System.Drawing.Size(248, 20);
     this.TXTNOMBRE.TabIndex = 81;
     //
     // ALUMNOIMAGE
     //
     this.ALUMNOIMAGE.Location = new System.Drawing.Point(811, 60);
     this.ALUMNOIMAGE.Margin   = new System.Windows.Forms.Padding(2);
     this.ALUMNOIMAGE.Name     = "ALUMNOIMAGE";
     this.ALUMNOIMAGE.Size     = new System.Drawing.Size(124, 151);
     this.ALUMNOIMAGE.TabIndex = 80;
     this.ALUMNOIMAGE.TabStop  = false;
     //
     // label4
     //
     this.label4.AutoSize  = true;
     this.label4.ForeColor = System.Drawing.Color.Black;
     this.label4.Location  = new System.Drawing.Point(443, 87);
     this.label4.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label4.Name      = "label4";
     this.label4.Size      = new System.Drawing.Size(116, 13);
     this.label4.TabIndex  = 79;
     this.label4.Text      = "APELLIDO MATERNO";
     //
     // TXTMATERNO
     //
     this.TXTMATERNO.Location = new System.Drawing.Point(559, 83);
     this.TXTMATERNO.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTMATERNO.Name     = "TXTMATERNO";
     this.TXTMATERNO.ReadOnly = true;
     this.TXTMATERNO.Size     = new System.Drawing.Size(248, 20);
     this.TXTMATERNO.TabIndex = 78;
     //
     // label3
     //
     this.label3.AutoSize  = true;
     this.label3.ForeColor = System.Drawing.Color.Black;
     this.label3.Location  = new System.Drawing.Point(444, 63);
     this.label3.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label3.Name      = "label3";
     this.label3.Size      = new System.Drawing.Size(114, 13);
     this.label3.TabIndex  = 77;
     this.label3.Text      = "APELLIDO PATERNO";
     //
     // TXTPATERNO
     //
     this.TXTPATERNO.Location = new System.Drawing.Point(559, 60);
     this.TXTPATERNO.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTPATERNO.Name     = "TXTPATERNO";
     this.TXTPATERNO.ReadOnly = true;
     this.TXTPATERNO.Size     = new System.Drawing.Size(248, 20);
     this.TXTPATERNO.TabIndex = 76;
     //
     // LBLIDPERSONA
     //
     this.LBLIDPERSONA.AutoSize  = true;
     this.LBLIDPERSONA.ForeColor = System.Drawing.Color.White;
     this.LBLIDPERSONA.Location  = new System.Drawing.Point(433, 372);
     this.LBLIDPERSONA.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.LBLIDPERSONA.Name      = "LBLIDPERSONA";
     this.LBLIDPERSONA.Size      = new System.Drawing.Size(42, 13);
     this.LBLIDPERSONA.TabIndex  = 75;
     this.LBLIDPERSONA.Text      = "XXXXX";
     //
     // BTNACTUALIZAR
     //
     this.BTNACTUALIZAR.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(0)))));
     this.BTNACTUALIZAR.FlatAppearance.BorderSize = 0;
     this.BTNACTUALIZAR.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
     this.BTNACTUALIZAR.Font      = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.BTNACTUALIZAR.ForeColor = System.Drawing.Color.White;
     this.BTNACTUALIZAR.Location  = new System.Drawing.Point(672, 334);
     this.BTNACTUALIZAR.Margin    = new System.Windows.Forms.Padding(2);
     this.BTNACTUALIZAR.Name      = "BTNACTUALIZAR";
     this.BTNACTUALIZAR.Size      = new System.Drawing.Size(123, 37);
     this.BTNACTUALIZAR.TabIndex  = 74;
     this.BTNACTUALIZAR.Text      = "ACTUALIZAR";
     this.BTNACTUALIZAR.UseVisualStyleBackColor = false;
     this.BTNACTUALIZAR.Click += new System.EventHandler(this.BTNACTUALIZAR_Click);
     //
     // GVALUMNOS
     //
     this.GVALUMNOS.AllowUserToAddRows          = false;
     this.GVALUMNOS.AllowUserToDeleteRows       = false;
     this.GVALUMNOS.AllowUserToResizeRows       = false;
     this.GVALUMNOS.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.GVALUMNOS.Location           = new System.Drawing.Point(10, 57);
     this.GVALUMNOS.Margin             = new System.Windows.Forms.Padding(2);
     this.GVALUMNOS.Name               = "GVALUMNOS";
     this.GVALUMNOS.ReadOnly           = true;
     this.GVALUMNOS.RowHeadersVisible  = false;
     this.GVALUMNOS.RowTemplate.Height = 24;
     this.GVALUMNOS.Size               = new System.Drawing.Size(400, 336);
     this.GVALUMNOS.TabIndex           = 73;
     this.GVALUMNOS.CellClick         += new System.Windows.Forms.DataGridViewCellEventHandler(this.GVALUMNOS_CellClick);
     //
     // label2
     //
     this.label2.AutoSize  = true;
     this.label2.ForeColor = System.Drawing.Color.Black;
     this.label2.Location  = new System.Drawing.Point(11, 15);
     this.label2.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label2.Name      = "label2";
     this.label2.Size      = new System.Drawing.Size(189, 13);
     this.label2.TabIndex  = 72;
     this.label2.Text      = "Ingresa el nombre del alumno a buscar";
     //
     // TXTALUSEARCH
     //
     this.TXTALUSEARCH.Location = new System.Drawing.Point(11, 32);
     this.TXTALUSEARCH.Margin   = new System.Windows.Forms.Padding(2);
     this.TXTALUSEARCH.Name     = "TXTALUSEARCH";
     this.TXTALUSEARCH.Size     = new System.Drawing.Size(293, 20);
     this.TXTALUSEARCH.TabIndex = 71;
     this.TXTALUSEARCH.KeyUp   += new System.Windows.Forms.KeyEventHandler(this.TXTALUSEARCH_KeyUp);
     //
     // txtDireccion
     //
     this.txtDireccion.Location = new System.Drawing.Point(561, 225);
     this.txtDireccion.Name     = "txtDireccion";
     this.txtDireccion.ReadOnly = true;
     this.txtDireccion.Size     = new System.Drawing.Size(245, 20);
     this.txtDireccion.TabIndex = 101;
     //
     // label1
     //
     this.label1.AutoSize  = true;
     this.label1.ForeColor = System.Drawing.Color.Black;
     this.label1.Location  = new System.Drawing.Point(491, 228);
     this.label1.Margin    = new System.Windows.Forms.Padding(2, 0, 2, 0);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(66, 13);
     this.label1.TabIndex  = 102;
     this.label1.Text      = "DIRECCION";
     //
     // frmActualizarAlumno
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     this.AutoScaleMode       = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize          = new System.Drawing.Size(953, 469);
     this.Controls.Add(this.panel1);
     this.Icon          = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin        = new System.Windows.Forms.Padding(2);
     this.MaximizeBox   = false;
     this.Name          = "frmActualizarAlumno";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text          = "ACTUALIZAR ALUMNO";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.ALUMNOIMAGE)).EndInit();
     ((System.ComponentModel.ISupportInitialize)(this.GVALUMNOS)).EndInit();
     this.ResumeLayout(false);
 }
Пример #28
0
        private void RenderDataQLPT()
        {
            // get phong tro
            StringBuilder query = new StringBuilder();

            query.Append("SELECT * FROM PHONGTRO ");

            SqlConnection conn = new SqlConnection(Program.getConnectionString());

            conn.Open();
            SqlDataAdapter da = new SqlDataAdapter(query.ToString(), conn);
            DataSet        ds = new DataSet();

            da.Fill(ds, "PHONGTRO");
            conn.Close();

            int spaceCol = -50;

            foreach (DataRow row in ds.Tables["PHONGTRO"].Rows)
            {
                // pass data to roomDAO
                RoomDAO room = new RoomDAO();
                room.Id             = row["MAPT"].ToString();
                room.Price          = Convert.ToDecimal(row["GIATHUE"]);
                room.NumberOfPeople = Convert.ToInt32(row["SONGUOI"]);
                room.Description    = row["MOTA"].ToString();
                rooms.Add(room);

                // get X of button
                spaceCol = getSpaceCol(buttons.Count, spaceCol, numPerRow);

                MaterialRaisedButton newButton = new MaterialRaisedButton();
                newButton.AutoSize = false;
                //newButton.AutoSizeMode = AutoSizeMode.GrowAndShrink;
                newButton.Depth      = 0;
                newButton.Icon       = null;
                newButton.Location   = new Point(spaceCol, getSpaceRow(buttons.Count, numPerRow));
                newButton.MouseState = MouseState.HOVER;
                newButton.Name       = row["MAPT"].ToString();
                newButton.Primary    = true;
                newButton.Size       = new Size(80, 80);
                newButton.TabIndex   = 0;
                newButton.Text       = row["MAPT"].ToString();
                newButton.UseVisualStyleBackColor = true;

                // Add a Button Click Event handler
                newButton.Click += new EventHandler(newButton_Click);

                buttons.Add(newButton);
                this.tabPageQLPT.Controls.Add(newButton);
            }

            // add button to add a new room

            // get X of button
            spaceCol = getSpaceCol(buttons.Count, spaceCol, numPerRow);

            MaterialRaisedButton addButton = new MaterialRaisedButton();

            addButton.AutoSize = false;
            //newButton.AutoSizeMode = AutoSizeMode.GrowAndShrink;
            addButton.Depth      = 0;
            addButton.Icon       = null;
            addButton.Location   = new Point(spaceCol, getSpaceRow(buttons.Count, numPerRow));
            addButton.MouseState = MouseState.HOVER;
            addButton.Name       = "addRoom";
            addButton.Primary    = true;
            addButton.Size       = new Size(80, 80);
            addButton.TabIndex   = 0;
            addButton.Text       = "+";
            addButton.UseVisualStyleBackColor = true;

            addButton.Click += new EventHandler(addButton_Click);
            buttons.Add(addButton);

            this.tabPageQLPT.Controls.Add(addButton);
        }
Пример #29
0
        private async void Otchot_Load(object sender, EventArgs e)
        {
            OthDiv = new MaterialDivider
            {
                Location = new Point(-1, 168),
                Size     = new Size(565, 11)
            };
            this.Controls.Add(OthDiv);

            allCheck = new MaterialCheckBox
            {
                Text     = "Выбрать все",
                Location = new Point(257, 193),
                AutoSize = true
            };
            allCheck.CheckedChanged += new EventHandler(allcheck_CheckedChanged);
            this.Controls.Add(allCheck);

            WordChek = new MaterialCheckBox
            {
                Text     = "",
                Location = new Point(185, 113),
                AutoSize = true
            };
            this.Controls.Add(WordChek);

            ExcelChek = new MaterialCheckBox
            {
                Text     = "",
                Location = new Point(311, 113),
                AutoSize = true
            };
            this.Controls.Add(ExcelChek);

            PdfChek = new MaterialCheckBox
            {
                Text     = "",
                Location = new Point(434, 113),
                AutoSize = true
            };
            this.Controls.Add(PdfChek);

            Bitmap Word = new Bitmap(@"D:\Флешка\4 курс\Программа работа\Rating_sotr\Word.png");

            WordImage = new PictureBox
            {
                Location              = new Point(214, 88),
                Size                  = new Size(77, 67),
                BackgroundImage       = Word,
                BackgroundImageLayout = ImageLayout.Zoom
            };
            WordImage.Click += new EventHandler(WordImage_Click);
            this.Controls.Add(WordImage);

            Bitmap Excel = new Bitmap(@"D:\Флешка\4 курс\Программа работа\Rating_sotr\Excel.png");

            ExcelImage = new PictureBox
            {
                Location              = new Point(340, 88),
                Size                  = new Size(77, 67),
                BackgroundImage       = Excel,
                BackgroundImageLayout = ImageLayout.Zoom
            };
            ExcelImage.Click += new EventHandler(ExcelImage_Click);
            this.Controls.Add(ExcelImage);

            Bitmap Pdf = new Bitmap(@"D:\Флешка\4 курс\Программа работа\Rating_sotr\pdf.png");

            PdfImage = new PictureBox
            {
                Location              = new Point(463, 88),
                Size                  = new Size(77, 67),
                BackgroundImage       = Pdf,
                BackgroundImageLayout = ImageLayout.Zoom
            };
            PdfImage.Click += new EventHandler(PdfImage_Click);
            this.Controls.Add(PdfImage);

            vibvers = new MaterialLabel
            {
                Location = new Point(23, 105),
                Text     = "Выбор формата " +
                           "документа",
                AutoSize = true
            };
            this.Controls.Add(vibvers);

            vibkrit = new MaterialLabel
            {
                Location = new Point(22, 197),
                Text     = "Выбор критерий для отчета",
                AutoSize = true
            };
            this.Controls.Add(vibkrit);

            BackBtn = new MaterialRaisedButton
            {
                Text     = "Отмена",
                Location = new Point(276, 393)
            };
            BackBtn.Click += new EventHandler(BackBtn_Click);
            this.Controls.Add(BackBtn);

            CompleteBtn = new MaterialRaisedButton
            {
                Text     = "Сформировать отчет",
                Location = new Point(359, 393)
            };
            CompleteBtn.Click += new EventHandler(CompleteBtn_Click);
            this.Controls.Add(CompleteBtn);

            string connectionString = @"Data Source = DESKTOP-EPNEITS; Initial Catalog = " + Program.server + "; Integrated Security = True";

            sqlConnection = new SqlConnection(connectionString);

            await sqlConnection.OpenAsync();

            DB.LoadDataCritery();
            SqlConnection connect = new SqlConnection(connectionString);
            string        podkl   = "SELECT * FROM critery";
            SqlCommand    com     = new SqlCommand(podkl, connect);

            connect.Open();
            SqlDataReader read = com.ExecuteReader();

            tabl.Load(read);

            int name = 26;
            int nume = 236;

            for (int i = 0; i < tabl.Rows.Count; i++)
            {
                MaterialCheckBox bt = new MaterialCheckBox();
                bt.Text     = tabl.Rows[i][1].ToString();
                bt.AutoSize = true;
                bt.Name     = tabl.Rows[i][1].ToString();
                bt.Location = new Point(name, nume);
                Controls.Add(bt);
                nume                 = nume + 30;
                this.Height          = nume + 45;
                BackBtn.Location     = new Point(276, nume + 5);
                CompleteBtn.Location = new Point(359, nume + 5);
                checkBoxes.Add(bt);
            }

            this.vibvers.MaximumSize = new Size(200, 100);
        }