private void RefreshSelectedControl() { if (SelectedControl == null) { return; } flowFileStatus.AutoScroll = true; flowFileStatus.ScrollControlIntoView(SelectedControl); SelectedControl.Invalidate(); graphChromatograms.IsCanceled = SelectedControl.IsCanceled; if (SelectedControl.Error != null || SelectedControl.Warning != null) { textBoxError.Text = SelectedControl.GetErrorLog(cbMoreInfo.Checked); ShowControl(panelError); } else if (SelectedControl.Progress == 0) { labelFileName.Text = SelectedControl.FilePath.GetFileNameWithoutExtension(); ShowControl(labelFileName); } else { graphChromatograms.Key = SelectedControl.FilePath.GetFilePath(); ShowControl(graphChromatograms); } }
public void CurrentItemSelected() { if (this.SelectedControl != null) { if (SelectedControl.OnSelected != null) { SelectedControl.OnSelected(); } } }
public Knot(Vector2 a_Point) { // Set the position of this knot m_Point = a_Point; // Default variables m_Prev = null; m_Next = null; m_Selected = false; SelControl = SelectedControl.None; }
//public void sampleRun1() //{ // var url1 = "http://www.agmarknet.nic.in/agnew/NationalBEnglish/DatewiseCommodityReport2.aspx"; // var m_values = new NameValueCollection() { // //{"__EVENTTARGET",""}, // // {"__EVENTARGUMENT",""}, // // {"__LASTFOCUS",""}, // // {"__VIEWSTATE","/wEPDwUJODM1ODc5NTEzD2QWAgIDD2QWEAIIDxBkEBUTES0tLVNlbGVjdCBZZWFyLS0tBDIwMDAEMjAwMQQyMDAyBDIwMDMEMjAwNAQyMDA1BDIwMDYEMjAwNwQyMDA4BDIwMDkEMjAxMAQyMDExBDIwMTIEMjAxMwQyMDE0BDIwMTUEMjAxNgQyMDE3FRMRLS0tU2VsZWN0IFllYXItLS0EMjAwMAQyMDAxBDIwMDIEMjAwMwQyMDA0BDIwMDUEMjAwNgQyMDA3BDIwMDgEMjAwOQQyMDEwBDIwMTEEMjAxMgQyMDEzBDIwMTQEMjAxNQQyMDE2BDIwMTcUKwMTZ2dnZ2dnZ2dnZ2dnZ2dnZ2dnZxYBAglkAgwPEGQPFg1mAgECAgIDAgQCBQIGAgcCCAIJAgoCCwIMFg0QBRAtLV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wKut2wwC3JfHuQQCksSC0g8CxquR2wwCxqud2wwCxKvt2AwCwKuV2wwChuHzjwgC2pfHuQQCi9PI+QUC6OrOjAsC5urqjAsCw6vt2AwC2KvN2AwCwauZ2wwCgKDNpgoCwKvN2AwCwavt2AwCxqul2wwCgKDZpgoC2pevuAQCwaud2wwC16ud2wwCi9PU+QUCwqut2wwCxqvt2AwCwqvt2AwC5uqyjwsCxKvB2AwChOHrjwgCwKud2wwC4PiFkg4CkMTy0g8CjNPU+QUCn6DZpgoCxqvN2AwCwqvB2AwCwKvt2AwCtq2hzwkC25ezuAQCsdqGzQsCwova3gMCoLew/QoCmaCGmQQCm6Ce2QIC2PnM0wsCvqyxkgcC97HUnQoC56u5lAoC3fO2dHIwQKQGa192nY03MaSDu2RLwMyQ"}, // { "cboYear","2017"}, // { "cboMonth","April"}, // { "cboState","Telangana"}, // {"cboCommodity","19"}, // {"btnSubmit","Submit"}, // {"hidCommName","Banana"}, // {"hidCommCode","19"}, // {"hidStateCode","TL"}, // {"hidStateName","Telangana"}, // {"hidYear","2017"}, // {"hidMonthName","April"}, // {"hidGroupCode","5"} // }; // // PostSubmitter obj = new PostSubmitter(url1, mvalues); // // var result = obj.Post(); // StringBuilder parameters = new StringBuilder(); // for (int i = 0; i < m_values.Count; i++) // { // EncodeAndAddItem(ref parameters, m_values.GetKey(i), m_values[i]); // } // byte[] bytes = Encoding.UTF8.GetBytes(parameters.ToString()); // GenericClass obj = new GenericClass(); // var webpage = obj.GetWebPage(url1,bytes); //} //public void sampleRun() //{ // var url1 = "http://www.agmarknet.nic.in/agnew/NationalBEnglish/CommodityPricesWeeklyReport.aspx"; // GenericClass obj = new GenericClass(); // var webpage= obj.GetWebPageSelenium(url1); // var obj1= new AgmarknetParse(); // obj1.parse(webpage); //} public void getMarkets() { var url1 = "http://www.agmarknet.nic.in/agnew/NationalBEnglish/CommodityPricesWeeklyReport.aspx"; GenericClass obj = new GenericClass(); List <SelectedControl> objList = new List <SelectedControl>(); //---------------------------geting markets var objSelectedControl = new SelectedControl() { Name = "cboState", Text = "Telangana" }; objList.Add(objSelectedControl); var webpage = obj.GetWebPageSelenium(url1, objList, false); var obj1 = new AgmarknetParse(); obj1.parseOptions(webpage, "cboMarket"); //----------------------------getting commidity //var objSelectedState = new SelectedControl() { Name = "cboState", Text = "Telangana" }; //var objSelectedMarket = new SelectedControl() { Name = "cboMarket", Text = "Gajwel" }; //objList.Add(objSelectedState); //objList.Add(objSelectedMarket); //var webpage = obj.GetWebPageSelenium(url1, objList, false); //var obj1 = new AgmarknetParse(); //obj1.parseOptions(webpage, "cboCommodity"); //var objSelectedState = new SelectedControl() { Name = "cboState", Text = "Telangana" }; //var objSelectedMarket = new SelectedControl() { Name = "cboMarket", Text = "Gajwel" }; //var objSelectedCommidity = new SelectedControl() { Name = "cboCommodity", Text = "All" }; //objList.Add(objSelectedState); //objList.Add(objSelectedMarket); //objList.Add(objSelectedCommidity); //var webpage = obj.GetWebPageSelenium(url1, objList, true); //var obj1 = new AgmarknetParse(); //obj1.parseData(webpage); }
private string GetSelectedControlErrorLog() { return(SelectedControl == null ? string.Empty : SelectedControl.GetErrorLog(cbMoreInfo.Checked)); }
public void ResetFormButton_Click(object sender, EventArgs e) { ControlsDataGridView.ClearSelection(); PropertiesTabPage.Text = string.Format("Properties - {0}", SelectedControl.ToString()); ItemPropertyGrid.SelectedObject = SelectedControl; }
private void btnCopyText_Click(object sender, EventArgs e) { ClipboardEx.SetText(SelectedControl.GetErrorLog(cbMoreInfo.Checked)); }
private void cbShowErrorDetails_CheckedChanged(object sender, EventArgs e) { textBoxError.Text = SelectedControl.GetErrorLog(cbMoreInfo.Checked); }
// Functions related to the mouse #region Mouse Functions public void MouseClick(object sender, SplineMouseEventArgs e) { // Get sender as a spline tab SplineTab tb = sender as SplineTab; // Assure sender was a spline tab if (tb == null) { throw new Exception("Sender for knots must be spline tab"); } // Check if point was clicked first if ((e.Point - m_Point).Magnitude() <= e.Radius) { // Set this knot to being selected e.Selected = this; // Set the selected control to the point SelControl = SelectedControl.Point; // End this function return; } // Create booleans to capture result bool hasFront = false; bool hasAfter = false; // Is bezier mode active? if (e.Bezier) { // Create bound rectangle Vector2 BU = new Vector2(e.Radius, e.Radius); // Calculate fronts bounding box Vector2 FLL = m_Front - BU; Vector2 FUR = m_Front + BU; // Calculate afters bounding box Vector2 ALL = m_After - BU; Vector2 AUR = m_After + BU; // Set if mouse is contained in either hasFront = (e.Point.x >= FLL.x && e.Point.x <= FUR.x) && (e.Point.y >= FLL.y && e.Point.y <= FUR.y); hasAfter = (e.Point.x >= ALL.x && e.Point.x <= AUR.x) && (e.Point.y >= ALL.y && e.Point.y <= AUR.y); } else { // Set if mouse is contained in either hasFront = (e.Point - m_Front).Magnitude() <= e.Radius; hasAfter = (e.Point - m_After).Magnitude() <= e.Radius; } // Was mouse contained by the in tangent? if (hasFront) { // Set this knot to being selected e.Selected = this; // Set the selected control to the in tangent SelControl = SelectedControl.In; // End this function return; } // Was the mouse contained by the out tangent? if (hasAfter) { // Set this knot to being selected e.Selected = this; // Set the selected control to the out tangent SelControl = SelectedControl.Out; // End this function return; } // Set no control to being selected SelControl = SelectedControl.None; }