private void main_Activated(object sender, EventArgs e) { newForm = new StartProccess(); newForm.LoadUrl(); newForm.Show(); leftform = new leftmenu(); leftform.Show(); this.Hide(); }
private void leftmenu_MouseDoubleClick(object sender, MouseEventArgs e) { Form newForm1 = CheckMdiFormIsOpen("StartProccess"); if (newForm1 == null) { StartProccess from = new StartProccess(""); from.Show(); } else { newForm1.WindowState = FormWindowState.Normal; newForm1.Show(); } }
private void 打开ToolStripMenuItem_Click(object sender, EventArgs e) { Form newForm1 = CheckMdiFormIsOpen("StartProccess"); if (newForm1 == null) { StartProccess from = new StartProccess(); from.Show(); } else { newForm1.WindowState = FormWindowState.Normal; newForm1.Show(); } }
private void button1_Click(object sender, EventArgs e) { if (textBox1.Text.Trim() == "" || textBox2.Text.Trim() == "") { return; } string guid = Guid.NewGuid().ToString().Replace("-", ""); if (urlModel != null) { guid = urlModel.guid; bool rlb = UrlXmlIO.UpdateNode(textBox2.Text, textBox1.Text, guid, txt_UserName.Text, txt_Pwd.Text); if (rlb) { MessageBox.Show("更新成功!"); } StartProccess startFrom = (StartProccess)CheckMdiFormIsOpen("StartProccess"); UrlModel model = new UrlModel(); model.guid = guid; model.name = textBox2.Text; model.url = textBox1.Text; model.username = txt_UserName.Text.Trim(); model.password = txt_Pwd.Text.Trim(); startFrom.updateControl(model); } else { bool rlb = UrlXmlIO.Create(textBox2.Text, textBox1.Text, guid, txt_UserName.Text, txt_Pwd.Text); if (rlb) { MessageBox.Show("添加成功!"); } StartProccess startFrom = (StartProccess)CheckMdiFormIsOpen("StartProccess"); UrlModel model = new UrlModel(); model.guid = guid; model.name = textBox2.Text; model.url = textBox1.Text; model.username = txt_UserName.Text.Trim(); model.password = txt_Pwd.Text.Trim(); startFrom.addControl(model); } this.Close(); }
private void ToolStripMenuItem_Click(object sender, EventArgs e) { string path = sender.ToString(); Form newForm1 = CheckMdiFormIsOpen("StartProccess"); if (newForm1 == null) { StartProccess from = new StartProccess(sender.ToString()); from.LoadUrl(); from.Show(); } else { newForm1.WindowState = FormWindowState.Normal; newForm1.Show(); } }
private void button1_Click(object sender, EventArgs e) { string guid = Guid.NewGuid().ToString().Replace("-", ""); bool rlb = UrlXmlIO.Create(textBox1.Text, guid); if (rlb) { MessageBox.Show("添加成功!"); } StartProccess startFrom = (StartProccess)CheckMdiFormIsOpen("StartProccess"); UrlModel model = new UrlModel(); model.guid = guid; model.name = textBox1.Text; model.url = textBox1.Text; startFrom.addControl(model); this.Close(); }
private void toolStripTextBox1_Click(object sender, EventArgs e) { StartProccess newForm = new StartProccess(); newForm.Show(); }