/// <summary> /// Получить цсв представление продукта. /// </summary> /// <returns></returns> public string GetLine() { string result = "\""; List <string> t = new List <string>(); t.Add(Name); t.Add(Description); t.Add(Article); t.Add(Amount.ToString()); t.Add(Price1.ToString()); t.Add(Price2.ToString()); t.Add(Guarantee); result += String.Join("\",\"", t) + "\""; return(result); }
internal string EditValidDataandSave(string typecode, string code, string desc, string price, string newtypecode, string newcode, string newdesc, string newprice) { int colnumber = SearchRecord(typecode, code, desc, price); if (colnumber < 0) { return("RecordNotFound"); } // Click edit button string editbtn = String.Format("(//a[@class='k-button k-button-icontext k-grid-Edit'][contains(.,'Edit')])[{0}]", colnumber); BrowserFactory.Driver.FindElement(By.XPath(editbtn)).Click(); // Select Time/Material TypeCode dropdown SelectTypeCode(newtypecode); //Enter code if (newcode != null) { codedrpdwn.Clear(); codedrpdwn.SendKeys(newcode); } // Enter description if (newdesc != null) { desctxtbox.Clear(); desctxtbox.SendKeys(newdesc); } // Enter Price if (newprice != null) { Price.Clear(); Price1.Clear(); Price.SendKeys(newprice); } // click save savebtn.Click(); return("success"); }
public override void Draw() { string arrowString; HorizontalAlignment horizontalAlignment; switch (ArrowCode) { case MQ4Const.SYMBOL_RIGHTPRICE: horizontalAlignment = HorizontalAlignment.Right; arrowString = Price1.ToString(); break; case MQ4Const.SYMBOL_LEFTPRICE: horizontalAlignment = HorizontalAlignment.Left; arrowString = Price1.ToString(); break; default: arrowString = MQ4Const.GetArrowByCode(ArrowCode); horizontalAlignment = HorizontalAlignment.Center; break; } DrawText(Name, arrowString, _index, Price1, VerticalAlignment.Center, horizontalAlignment, Color); }
private void Del1_Click(object sender, EventArgs e) { Price1.ResetText(); day1.ResetText(); //ClearTextBox(this); }