public Item(string name, eKind kind, string coment, float fun) { m_strName = name; m_eKind = kind; m_strComent = coment; m_nFunction = fun; }
public TreeNode(char c, eKind kind, int length, bool last) { this.value = c; this.length = length; this.kind = kind; bLast = last; }
public TreeNode(char c, bool last) { this.value = c; length = 0; this.kind = eKind.CHAR; bLast = last; }
public TreeNode(char c, eKind kind, int length) { this.value = c; this.length = length; this.kind = kind; bLast = false; }
public TreeNode(char c) { this.value = c; length = 0; this.kind = eKind.CHAR; bLast = false; }
public Item(string name, eKind kind, string coment, float fucF, float fucS, float fucT, int gold) { m_strName = name; m_eKind = kind; m_strComent = coment; m_nFuctionF = fucF; m_nFuctionS = fucS; m_nFuctionT = fucT; m_nGold = gold; }
public bool Import(out eKind Setting, string Text, int oLine) { var c = new Cursor(Text); Setting = eKind.Error; if (c.IsMark('#') >= 1) { c.Commit(); var nWord = c.IsChars(cWordDecimal, false); if (nWord > 0) { var Word = c.Substring(c.Preview, nWord).ToUpper(); if (Word == cVOLUME_UPDOWN) { if (c.SkipSpace() > 0) { c.Commit(); var oChar = c.Current; var nChar = c.IsChars(cVOLUME_UPDOWN_False, false); if (nChar == cVOLUME_UPDOWN_False.Length) { c.SkipSpace(); c.Commit(); if (c.IsTerm) { var UpDown = c.Substring(oChar, nChar); if (UpDown == cVOLUME_UPDOWN_False) { Setting = eKind.VOLUME_UPDOWN; mbVolumeSwap = false; return(true); } if (UpDown == cVOLUME_UPDOWN_True) { Setting = eKind.VOLUME_UPDOWN; mbVolumeSwap = true; return(true); } Console.WriteLine($"!! Error !! : Illegal parameter"); Console.WriteLine($"Line {oLine+1} : Column {oChar+1}"); return(false); } } } } } } Console.WriteLine($"!! Error !! : Syntax error"); Console.WriteLine($"Line {oLine+1} : Column {c.Preview+1}"); return(false); }
private void changeControls(MyDelegate myDelegate, eKind kind) { isChange = false; FormCollection formsList = Application.OpenForms; foreach (Form form in formsList) { foreach (Control c in form.Controls) { myDelegate(c, kind); } } }
/// <summary> /// reser all style to defult style /// </summary> /// <param name="myControl"></param> /// <param name="kind"></param> public void ResetAll(Control myControl, eKind kind) { GlobalStyle.cursor = Cursors.Arrow; myControl.FindForm().Cursor = GlobalStyle.cursor; float y = myControl.Tag != null?float.Parse(myControl.Tag.ToString()) : myControl.Font.Size; GlobalStyle.segoeFont = GlobalStyle.baseFont; myControl.Font = GlobalStyle.segoeFont; foreach (Control subC in myControl.Controls) { ResetAll(subC, kind); } }
private void ChangeColorItem(RadMenuItem item, eKind kind) { if (kind == eKind.Reset) { item.BackColor = Color.Gray; return; } if (item.BackColor == Color.Gray) { item.BackColor = Color.Green; } else { item.BackColor = Color.Gray; } }
/// <summary> /// UpdateFontBold /// </summary> /// <param name="myControl"></param> /// <param name="kind"></param> public void UpdateFontBold(Control myControl, eKind kind) { FontStyle style; switch (myControl.Font.Bold) { case false: style = FontStyle.Bold; break; default: style = FontStyle.Regular; break; } GlobalStyle.segoeFont = new Font(GlobalStyle.segoeFont, style); myControl.Font = GlobalStyle.segoeFont; foreach (Control subC in myControl.Controls) { UpdateFontBold(subC, kind); } }
/// <summary> /// UpdateFontSizeControls /// </summary> /// <param name="myControl"></param> /// <param name="kind">bigger or smaller</param> public void UpdateFontSizeControls(Control myControl, eKind kind) { if (isChange == false) { float y = GlobalStyle.segoeFont.Size; switch (kind) { case eKind.Bigger: y += textSizeAdd; break; default: y -= textSizeAdd; break; } GlobalStyle.segoeFont = new Font(GlobalStyle.segoeFont.FontFamily, y); isChange = true; } myControl.Font = GlobalStyle.segoeFont; foreach (Control subC in myControl.Controls) { UpdateFontSizeControls(subC, kind); } }
public ObjectSqlArgs(DomainObjectInquiry inquiry, DomainObjectConfig obj, eKind kind) : base(inquiry) { AObject = obj; Kind = kind; }
public Command(eKind kind, float degree) { this.degree = degree; this.kind = kind; }