protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == (Keys.Control | Keys.W)) { this.Close(); return(true); } if (keyData == (Keys.Control | Keys.F)) { Assy_txtbox.Focus(); Assy_txtbox.SelectAll(); return(true); } if (keyData == (Keys.Control | Keys.S)) { txtSearch.Focus(); txtSearch.SelectAll(); return(true); } if (keyData == Keys.Home) { if (Assy_txtbox.Text.Length > 0) { Assy_txtbox.Focus(); Assy_txtbox.SelectAll(); SendKeys.Send("~"); } return(true); } return(base.ProcessCmdKey(ref msg, keyData)); }
private void startprocessofbom() { txtvalue = Assy_txtbox.Text; try { treeView1.Nodes.Clear(); RemoveChildNodes(root); treeView1.ResetText(); filldatatable(); fillrootnode("1"); } catch (Exception) { if (!String.IsNullOrEmpty(txtvalue) && Char.IsLetter(txtvalue[0])) { MessageBox.Show(" Item does not contain a Bill OF Material on Genius.", "SPM Connect - Bill Of Manufacturing", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); Assy_txtbox.Clear(); } else { MessageBox.Show("Invalid Search Parameter / Item Not Found On Genius.", "SPM Connect - Bill Of Manufacturing", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); cleaup2(); Assy_txtbox.BackColor = Color.IndianRed; } } }
private void cleanup() { treeView1.Nodes.Clear(); treeView1.ResetText(); RemoveChildNodes(root); _acountsTb.Clear(); Assy_txtbox.Clear(); }
private void ParentView_Load(object sender, EventArgs e) { Assy_txtbox.Focus(); Assy_txtbox.Text = itemnumber; if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6) { //SendKeys.Send("~"); itemnumber = null; startprocessofbom(); } }
private void cleanup() { treeView1.Nodes.Clear(); treeView1.ResetText(); RemoveChildNodes(root); _acountsTb.Clear(); Assy_txtbox.Clear(); Expandchk.Checked = false; txtSearch.Clear(); ItemTxtBox.Clear(); Descriptiontxtbox.Clear(); oemtxtbox.Clear(); oemitemtxtbox.Clear(); qtytxtbox.Clear(); }
private void ParentView_Load(object sender, EventArgs e) { Assy_txtbox.Focus(); //Assy_txtbox.Text = SPM_ConnectControls.whereusedcontrols; Assy_txtbox.Text = itemnumber; if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6) { itemnumber = null; startprocessofwhereused(); } Assy_txtbox.Select(); log4net.Config.XmlConfigurator.Configure(); log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); log.Info("Opened AutoCadWhereUsed Form by " + System.Environment.UserName); }
private void Assy_txtbox_MouseDoubleClick(object sender, MouseEventArgs e) { // treeView1.TopNode.Nodes.Clear(); treeView1.Nodes.Clear(); treeView1.ResetText(); RemoveChildNodes(root); Assy_txtbox.Clear(); Expandchk.Checked = false; txtSearch.Clear(); ItemTxtBox.Clear(); Descriptiontxtbox.Clear(); oemtxtbox.Clear(); oemitemtxtbox.Clear(); qtytxtbox.Clear(); _acountsTb.Clear(); // SendKeys.Send("~"); }
private void Cleanup() { treeView1.Nodes.Clear(); treeView1.ResetText(); RemoveChildNodes(root); dt.Clear(); Assy_txtbox.Clear(); Expandchk.Checked = false; txtSearch.Clear(); ItemTxtBox.Clear(); Descriptiontxtbox.Clear(); oemtxtbox.Clear(); oemitemtxtbox.Clear(); qtytxtbox.Clear(); sparetxtbox.Clear(); familytxtbox.Clear(); listView.Clear(); listFiles.Clear(); foundlabel.Text = "Search:"; }
private void ParentView_Load(object sender, EventArgs e) { Assy_txtbox.Focus(); Assy_txtbox.Text = itemnumber; if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6) { //SendKeys.Send("~"); itemnumber = null; Assy_txtbox.Select(); startprocessofwhereused(); CallRecursive(); // connectapi.SPM_Connect(); if (connectapi.getdepartment() == "Eng") { eng = true; } } log4net.Config.XmlConfigurator.Configure(); log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); log.Info("Opened Where Used " + itemnumber + " by " + System.Environment.UserName); }
private void ParentView_Load(object sender, EventArgs e) { // Suspend the layout logic for the form, while the application is initializing this.SuspendLayout(); Assy_txtbox.Focus(); Assy_txtbox.Text = itemnumber; if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6) { Startprocessofbom(); CallRecursive(); if (connectapi.ConnectUser.Dept == Department.Eng) { eng = true; } Assy_txtbox.Select(); } log4net.Config.XmlConfigurator.Configure(); log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); log.Info("Opened Estimate BOM " + itemnumber + " "); // Resume the layout logic this.ResumeLayout(); }
private void ParentView_Load(object sender, EventArgs e) { Assy_txtbox.Select(); savebttn.Visible = false; qtylbl.Visible = false; qtytxtbox.Visible = false; Assy_txtbox.Focus(); //Assy_txtbox.Text = SPM_ConnectControls.assytree; Assy_txtbox.Text = itemnumber; if (Assy_txtbox.Text.Length == 5 || Assy_txtbox.Text.Length == 6) { Assy_txtbox.Focus(); itemnumber = null; //SendKeys.Send("~"); startprocessofwhereused(); } log4net.Config.XmlConfigurator.Configure(); log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); log.Info("Opened AutoCadAssembly Form "); }