• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

C# MyControlLibrary.ErrorMSG类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中MyControlLibrary.ErrorMSG的典型用法代码示例。如果您正苦于以下问题:C# ErrorMSG类的具体用法?C# ErrorMSG怎么用?C# ErrorMSG使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ErrorMSG类属于MyControlLibrary命名空间,在下文中一共展示了ErrorMSG类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: Char4WIS_TextChanged

 private void Char4WIS_TextChanged(object sender, EventArgs e)
 {
     try
     {
         this.Group[3].SetWIS(Convert.ToInt32(Char4WIS.Text));
         Char4WIS_MOD.Text = this.Group[3].GetWIS_Mod().ToString();
     }
     catch
     {
         if (isError && !Char4WIS.Text.Equals(""))
         {
             ErrorMSG error = new ErrorMSG();
             //set error message
             error.ErrorLabel.Text = "Error: This box takes integers only (0-9)";
             error.Show();
             isError = false;
             ///
             Char4WIS.Text = "";
             ////
             isError = true;
         }//end if
         if (Char4WIS.Text.Equals(""))
             Char4WIS_MOD.Text = "0";
     }
 }
开发者ID:darkwisperer,项目名称:Dungeon-Master-Sheet,代码行数:25,代码来源:CharTabPageV3.cs


示例2: ACCheckPenalty2_TextChanged

 private void ACCheckPenalty2_TextChanged(object sender, EventArgs e)
 {
     try
     {
         this.Group[1].SetACCheck(Convert.ToInt32(ACCheckPenalty2.Text));
     }
     catch
     {
         if (isError && !ACCheckPenalty2.Text.Equals(""))
         {
             ErrorMSG error = new ErrorMSG();
             //set error message
             error.ErrorLabel.Text = "Error: This box takes integers only (0-9)";
             error.Show();
             isError = false;
             ///
             ACCheckPenalty2.Text = "";
             ////
             isError = true;
         }//end if
     }
 }
开发者ID:darkwisperer,项目名称:Dungeon-Master-Sheet,代码行数:22,代码来源:CharTabPageV3.cs


示例3: Char4UR_TextChanged

 private void Char4UR_TextChanged(object sender, EventArgs e)
 {
     try
     {
         this.Group[3].skill.SetUseRope(Convert.ToInt32(Char4UR.Text));
     }//end try
     catch
     {
         if (isError && !Char4UR.Text.Equals(""))
         {
             ErrorMSG error = new ErrorMSG();
             //set error message
             error.ErrorLabel.Text = "Error: This box takes integers only (0-9)";
             error.Show();
             isError = false;
             ///
             Char4UR.Text = "";
             ////
             isError = true;
         }//end if
     }
 }
开发者ID:darkwisperer,项目名称:Dungeon-Master-Sheet,代码行数:22,代码来源:CharTabPageV3.cs


示例4: Char3Hide_TextChanged

 private void Char3Hide_TextChanged(object sender, EventArgs e)
 {
     try
     {
         this.Group[2].skill.SetHide(Convert.ToInt32(Char3Hide.Text));
     }
     catch
     {
         if (isError && !Char3Hide.Text.Equals(""))
         {
             ErrorMSG error = new ErrorMSG();
             //set error message
             error.ErrorLabel.Text = "Error: This box takes integers only (0-9)";
             error.Show();
             isError = false;
             Char3Hide.Text = "";
             isError = true;
         }
     }
 }
开发者ID:darkwisperer,项目名称:Dungeon-Master-Sheet,代码行数:20,代码来源:CharTabPageV3.cs


示例5: Load


//.........这里部分代码省略.........
                    dnd.Add(cache.ToString());//Bluff    = lines 112 +  159 + char
                    cache = Convert.ToInt32(input[113]) + Convert.ToInt32(input[160]) + Group[0].modifier(Convert.ToInt32(input[24]));
                    dnd.Add(cache.ToString());//Climb    = lines 113 +  160 + str
                    cache = Convert.ToInt32(input[114]) + Convert.ToInt32(input[161]) + Group[0].modifier(Convert.ToInt32(input[50]));
                    dnd.Add(cache.ToString());//Concentration = lines 114 +  161 + con
                    cache = Convert.ToInt32(input[115]) + Convert.ToInt32(input[162]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//Craft1   = lines 115 +  162 + int
                    cache = Convert.ToInt32(input[116]) + Convert.ToInt32(input[163]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//Craft2   = lines 116 +  163 + int
                    cache = Convert.ToInt32(input[118]) + Convert.ToInt32(input[165]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//DeciferScript = lines 118 +  165 + int
                    cache = Convert.ToInt32(input[119]) + Convert.ToInt32(input[166]) + Group[0].modifier(Convert.ToInt32(input[57]));
                    dnd.Add(cache.ToString());//Diplomacy = lines 119 +  166 + char
                    cache = Convert.ToInt32(input[120]) + Convert.ToInt32(input[167]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//DisableDevice = lines 120 +  167 + int
                    cache = Convert.ToInt32(input[121]) + Convert.ToInt32(input[168]) + Group[0].modifier(Convert.ToInt32(input[57]));
                    dnd.Add(cache.ToString());//Disguise = lines 121 +  168 + char
                    cache = Convert.ToInt32(input[122]) + Convert.ToInt32(input[169]) + Group[0].modifier(Convert.ToInt32(input[49]));
                    dnd.Add(cache.ToString());//EscapeArtist = lines 122 +  169 + dex
                    cache = Convert.ToInt32(input[123]) + Convert.ToInt32(input[170]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//Forgery = lines 123 +  170 + int
                    cache = Convert.ToInt32(input[124]) + Convert.ToInt32(input[171]) + Group[0].modifier(Convert.ToInt32(input[57]));
                    dnd.Add(cache.ToString());//GatherInfo = lines 124 +  171 + char
                    cache = Convert.ToInt32(input[125]) + Convert.ToInt32(input[172]) + Group[0].modifier(Convert.ToInt32(input[57]));
                    dnd.Add(cache.ToString());//HandleAnimal = lines 125 +  172 + char
                    cache = Convert.ToInt32(input[126]) + Convert.ToInt32(input[173]) + Group[0].modifier(Convert.ToInt32(input[54]));
                    dnd.Add(cache.ToString());//Heal = lines 126 +  173 + wis
                    cache = Convert.ToInt32(input[127]) + Convert.ToInt32(input[174]) + Group[0].modifier(Convert.ToInt32(input[49]));
                    dnd.Add(cache.ToString());//Hide = lines 127 +  174 + dex
                    cache = Convert.ToInt32(input[128]) + Convert.ToInt32(input[175]) + Group[0].modifier(Convert.ToInt32(input[57]));
                    dnd.Add(cache.ToString());//Intimidate = lines 128 +  175 + char
                    cache = Convert.ToInt32(input[129]) + Convert.ToInt32(input[176]) + Group[0].modifier(Convert.ToInt32(input[24]));
                    dnd.Add(cache.ToString());//Jump = lines 129 +  176 + str
                    cache = Convert.ToInt32(input[130]) + Convert.ToInt32(input[177]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//KnowledgeArcana = lines 130 +  177 + int
                    cache = Convert.ToInt32(input[131]) + Convert.ToInt32(input[178]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//KnowledgeNature = lines 131 +  178 + int
                    cache = Convert.ToInt32(input[132]) + Convert.ToInt32(input[179]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//KnowledgeReligion = lines 132 +  179 + int
                    cache = Convert.ToInt32(input[133]) + Convert.ToInt32(input[180]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//Knowledge1 = lines 133 +  180 + int
                    cache = Convert.ToInt32(input[134]) + Convert.ToInt32(input[181]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//Knowledge2 = lines 134 +  181 + int
                    cache = Convert.ToInt32(input[135]) + Convert.ToInt32(input[182]) + Group[0].modifier(Convert.ToInt32(input[54]));
                    dnd.Add(cache.ToString());//Listen = lines 135 +  182 + wis
                    cache = Convert.ToInt32(input[136]) + Convert.ToInt32(input[183]) + Group[0].modifier(Convert.ToInt32(input[49]));
                    dnd.Add(cache.ToString());//MoveSilently = lines 136 +  183 +dex
                    cache = Convert.ToInt32(input[137]) + Convert.ToInt32(input[184]) + Group[0].modifier(Convert.ToInt32(input[49]));
                    dnd.Add(cache.ToString());//OpenLock = lines 137 +  184 + dex
                    cache = Convert.ToInt32(input[138]) + Convert.ToInt32(input[185]) + Group[0].modifier(Convert.ToInt32(input[57]));
                    dnd.Add(cache.ToString());//Perform = lines 138 +  185 + char
                    cache = Convert.ToInt32(input[141]) + Convert.ToInt32(input[188]) + Group[0].modifier(Convert.ToInt32(input[54]));
                    dnd.Add(cache.ToString());//Profession = lines 141 +  188 + wis
                    cache = Convert.ToInt32(input[143]) + Convert.ToInt32(input[190]) + Group[0].modifier(Convert.ToInt32(input[49]));
                    dnd.Add(cache.ToString());//Ride = lines 139 +  186 + dex
                    cache = Convert.ToInt32(input[144]) + Convert.ToInt32(input[191]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//Search = lines 144 +  191 + int
                    cache = Convert.ToInt32(input[145]) + Convert.ToInt32(input[192]) + Group[0].modifier(Convert.ToInt32(input[54]));
                    dnd.Add(cache.ToString());//SenseMotive = lines 145 +  192 + wis
                    cache = Convert.ToInt32(input[146]) + Convert.ToInt32(input[193]) + Group[0].modifier(Convert.ToInt32(input[49]));
                    dnd.Add(cache.ToString());//SlightOfHand = lines 146 +  193 + dex
                    cache = Convert.ToInt32(input[147]) + Convert.ToInt32(input[194]) + Group[0].modifier(Convert.ToInt32(input[53]));
                    dnd.Add(cache.ToString());//Spellcraft = lines 147 +  194 + int
                    cache = Convert.ToInt32(input[148]) + Convert.ToInt32(input[195]) + Group[0].modifier(Convert.ToInt32(input[54]));
                    dnd.Add(cache.ToString());//spot = lines 148 +  195 + wis
                    cache = Convert.ToInt32(input[149]) + Convert.ToInt32(input[196]) + Group[0].modifier(Convert.ToInt32(input[54]));
                    dnd.Add(cache.ToString());//Survival = lines 149 +  196 + wis
                    cache = Convert.ToInt32(input[150]) + Convert.ToInt32(input[197]) + Group[0].modifier(Convert.ToInt32(input[24]));
                    dnd.Add(cache.ToString());//Swim = lines 150 +  197 + str
                    cache = Convert.ToInt32(input[151]) + Convert.ToInt32(input[198]) + Group[0].modifier(Convert.ToInt32(input[49]));
                    dnd.Add(cache.ToString());//Tumble = lines 151 +  198 + dex
                    cache = Convert.ToInt32(input[152]) + Convert.ToInt32(input[199]) + Group[0].modifier(Convert.ToInt32(input[57]));
                    dnd.Add(cache.ToString());//UseMagicDevice = lines 152 +  199 + char
                    cache = Convert.ToInt32(input[153]) + Convert.ToInt32(input[200]) + Group[0].modifier(Convert.ToInt32(input[49]));
                    dnd.Add(cache.ToString());//UseRope = lines 153 +  200 + dex
                    cache = Convert.ToInt32(input[154]) + Convert.ToInt32(input[201]);
                    dnd.Add(cache.ToString());//Other = lines 154 +  201

                    //need to check for next available character
                    int slot = EmptySLotFinder(Group);
                    String[] temp = (String[])dnd.ToArray(typeof(String));
                    Group[slot] = setCharacter(temp, (Character)Group[slot]);

                }//end else if
            }//end of try

            catch (Exception e)
            {
                //throw error
                ErrorMSG error = new ErrorMSG();
                //set error message
                error.ErrorLabel.Text = "Error Loading: " + e;
                error.Show();
            }//end of catch

            finally
            {
                reader.Close();
            }//end of finally
        }
开发者ID:darkwisperer,项目名称:Dungeon-Master-Sheet,代码行数:101,代码来源:LoadSave.cs


示例6: setCharacter


//.........这里部分代码省略.........

                PC.SetName(input[0]);
                PC.SetRace(input[1]);
                PC.SetClass(input[2]);
                PC.Sethieght(input[3]);
                PC.SetWeight(input[4]);
                PC.SetDeity(input[5]);
                PC.SetAlignment(input[6].ToUpper());
                PC.SetLanguages(input[7]);
                PC.SetArmor(input[8]);
                PC.SetWeapons(input[9]);
                PC.SetItems(input[10]);
                PC.SetSaving_Throw_Mod(input[11]);
                PC.SetAC_Mod(input[12]);
                tmp = input[13];
                c = tmp[0];//to prevent issues with inporting from .dnd and having full words of size i.e medium instead of m
                PC.SetSize(c);
                tmp = input[14];
                c = tmp[0];//to prevent issues with inporting from .dnd and having full words of gender i.e male instead of m
                PC.SetGender(c);
                PC.Setlvl(Convert.ToInt32(input[15]));
                PC.SetAge(Convert.ToInt32(input[16]));
                PC.SetSTR(Convert.ToInt32(input[17]));
                PC.SetSTR_Mod(Convert.ToInt32(input[18]));
                PC.SetDEX(Convert.ToInt32(input[19]));
                PC.SetDEX_Mod(Convert.ToInt32(input[20]));
                PC.SetCON(Convert.ToInt32(input[21]));
                PC.SetCON_Mod(Convert.ToInt32(input[22]));
                PC.SetINT(Convert.ToInt32(input[23]));
                PC.SetINT_Mod(Convert.ToInt32(input[24]));
                PC.SetWIS(Convert.ToInt32(input[25]));
                PC.SetWIS_Mod(Convert.ToInt32(input[26]));
                PC.SetCHA(Convert.ToInt32(input[27]));
                PC.SetCHA_Mod(Convert.ToInt32(input[28]));
                PC.SetSpeed(Convert.ToInt32(input[29]));
                PC.SetOH(Convert.ToInt32(input[30]));
                PC.SetOG(Convert.ToInt32(input[31]));
                PC.SetPD(Convert.ToInt32(input[32]));
                PC.SetFort(Convert.ToInt32(input[33]));
                PC.SetRef(Convert.ToInt32(input[34]));
                PC.SetWill(Convert.ToInt32(input[35]));
                PC.SetAC(Convert.ToInt32(input[36]));
                PC.SetFlatFoot(Convert.ToInt32(input[37]));
                PC.SetTouch(Convert.ToInt32(input[38]));
                PC.SetHP(Convert.ToInt32(input[39]));
                PC.SetHPMAX(Convert.ToInt32(input[40]));
                PC.SetACCheck(Convert.ToInt32(input[41]));
                //skills
                PC.skill.SetAppraise(Convert.ToInt32(input[42]));
                PC.skill.SetBalance(Convert.ToInt32(input[43]));
                PC.skill.SetBluff(Convert.ToInt32(input[44]));
                PC.skill.SetClimb(Convert.ToInt32(input[45]));
                PC.skill.SetConcentration(Convert.ToInt32(input[46]));
                PC.skill.SetCraft1(Convert.ToInt32(input[47]));
                PC.skill.SetCraft2(Convert.ToInt32(input[48]));
                PC.skill.SetDeciferScript(Convert.ToInt32(input[49]));
                PC.skill.SetDiplomacy(Convert.ToInt32(input[50]));
                PC.skill.SetDisableDevice(Convert.ToInt32(input[51]));
                PC.skill.SetDisguise(Convert.ToInt32(input[52]));
                PC.skill.SetEscapeArtist(Convert.ToInt32(input[53]));
                PC.skill.SetForgery(Convert.ToInt32(input[54]));
                PC.skill.SetGatherInfo(Convert.ToInt32(input[55]));
                PC.skill.SetHandleAnimal(Convert.ToInt32(input[56]));
                PC.skill.SetHeal(Convert.ToInt32(input[57]));
                PC.skill.SetHide(Convert.ToInt32(input[58]));
                PC.skill.SetIntimidate(Convert.ToInt32(input[59]));
                PC.skill.SetJump(Convert.ToInt32(input[60]));
                PC.skill.SetKnowledgeArcana(Convert.ToInt32(input[61]));
                PC.skill.SetKnowledgeNature(Convert.ToInt32(input[62]));
                PC.skill.SetKnowledgeReligion(Convert.ToInt32(input[63]));
                PC.skill.SetKnowledge1(Convert.ToInt32(input[64]));
                PC.skill.SetKnowledge2(Convert.ToInt32(input[65]));
                PC.skill.SetListen(Convert.ToInt32(input[66]));
                PC.skill.SetMoveSilently(Convert.ToInt32(input[67]));
                PC.skill.SetOpenLock(Convert.ToInt32(input[68]));
                PC.skill.SetPerform(Convert.ToInt32(input[69]));
                PC.skill.SetProfession(Convert.ToInt32(input[70]));
                PC.skill.SetRide(Convert.ToInt32(input[71]));
                PC.skill.SetSearch(Convert.ToInt32(input[72]));
                PC.skill.SetSenseMotive(Convert.ToInt32(input[73]));
                PC.skill.SetSlightOfHand(Convert.ToInt32(input[74]));
                PC.skill.SetSpellcraft(Convert.ToInt32(input[75]));
                PC.skill.SetSpot(Convert.ToInt32(input[76]));
                PC.skill.SetSurvival(Convert.ToInt32(input[77]));
                PC.skill.SetSwim(Convert.ToInt32(input[78]));
                PC.skill.SetTumble(Convert.ToInt32(input[79]));
                PC.skill.SetUseMagicDevice(Convert.ToInt32(input[80]));
                PC.skill.SetUseRope(Convert.ToInt32(input[81]));
                PC.skill.SetOther(Convert.ToInt32(input[82]));
            }//end of try
            catch (Exception e)
            {
                //throw error
                ErrorMSG error = new ErrorMSG();
                //set error message
                error.ErrorLabel.Text = "Error Loading to the character sheet: " + e;
                error.Show();
            }
            return PC;
        }
开发者ID:darkwisperer,项目名称:Dungeon-Master-Sheet,代码行数:101,代码来源:LoadSave.cs


示例7: DG_sheet_sizes

        public void DG_sheet_sizes(String PathFile)
        {
            //read in file
            StreamReader reader = new StreamReader(PathFile);
            String tmp;
            ArrayList input = new ArrayList();
            ArrayList group = new ArrayList();

            try
            {

                do
                {
                    //read from file
                    tmp = reader.ReadLine();
                    if (tmp.Contains("*"))
                    {
                        group.Add(input.ToArray());
                        input = new ArrayList();
                    }
                    else input.Add(tmp);
                } while (reader.Peek() != -1);

            }//end of try

            catch (Exception e)
            {
                //throw error
                ErrorMSG error = new ErrorMSG();
                //set error message
                error.ErrorLabel.Text = "Error Loading Group: " + Environment.NewLine + e.Message  + Environment.NewLine + e.StackTrace;
                error.Width += 520;
                error.Show();
            }//end of catch

            finally
            {
               reader.Close();
               DG = group;
            }//end of finally
        }
开发者ID:darkwisperer,项目名称:Dungeon-Master-Sheet,代码行数:41,代码来源:LoadSave.cs



注:本文中的MyControlLibrary.ErrorMSG类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Sharp.IntCoord类代码示例发布时间:2022-05-26
下一篇:
C# My24HourTimerWPF.TimeLine类代码示例发布时间:2022-05-26
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap