コード例 #1
0
 public Item(string name, eKind kind, string coment, float fun)
 {
     m_strName   = name;
     m_eKind     = kind;
     m_strComent = coment;
     m_nFunction = fun;
 }
コード例 #2
0
ファイル: Tree.cs プロジェクト: Bummibaer/DebugLog
 public TreeNode(char c, eKind kind, int length, bool last)
 {
     this.value  = c;
     this.length = length;
     this.kind   = kind;
     bLast       = last;
 }
コード例 #3
0
ファイル: Tree.cs プロジェクト: Bummibaer/DebugLog
 public TreeNode(char c, bool last)
 {
     this.value = c;
     length     = 0;
     this.kind  = eKind.CHAR;
     bLast      = last;
 }
コード例 #4
0
ファイル: Tree.cs プロジェクト: Bummibaer/DebugLog
 public TreeNode(char c, eKind kind, int length)
 {
     this.value  = c;
     this.length = length;
     this.kind   = kind;
     bLast       = false;
 }
コード例 #5
0
ファイル: Tree.cs プロジェクト: Bummibaer/DebugLog
 public TreeNode(char c)
 {
     this.value = c;
     length     = 0;
     this.kind  = eKind.CHAR;
     bLast      = false;
 }
コード例 #6
0
ファイル: Item.cs プロジェクト: soj6802/Unity
 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;
 }
コード例 #7
0
        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);
        }
コード例 #8
0
        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);
                }
            }
        }
コード例 #9
0
        /// <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);
            }
        }
コード例 #10
0
 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;
     }
 }
コード例 #11
0
        /// <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);
            }
        }
コード例 #12
0
        /// <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);
            }
        }
コード例 #13
0
ファイル: UI.cs プロジェクト: Ne4to/DomainCommonSE
 public ObjectSqlArgs(DomainObjectInquiry inquiry, DomainObjectConfig obj, eKind kind)
     : base(inquiry)
 {
     AObject = obj;
     Kind = kind;
 }
コード例 #14
0
 public Command(eKind kind, float degree)
 {
     this.degree = degree; this.kind = kind;
 }