public override void CreateDic() { Dic.Add(CJQXChaoJie.BiaoZhu.ToString(), "标注"); Dic.Add(CJQXChaoJie.JianCai.ToString(), "剪裁"); Dic.Add(CJQXChaoJie.PingYi.ToString(), "平移"); Dic.Add(CJQXChaoJie.ZheHui.ToString(), "折回"); }
public override void CreateDic() { Dic.Add("CENTER", "CENTER"); Dic.Add("DASHDOT", "DASHDOT"); Dic.Add("DASHED", "DASHED"); Dic.Add("HIDDEN", "HIDDEN"); Dic.Add("HIDDEN2", "HIDDEN2"); Dic.Add("BORDER", "BORDER"); Dic.Add("BORDER2", "BORDER2"); Dic.Add("BORDERX2", "BORDERX2"); Dic.Add("CENTER2", "CENTER2"); Dic.Add("DASHDOT2", "DASHDOT2"); Dic.Add("DASHDOTX2", "DASHDOTX2"); Dic.Add("DASHED2", "DASHED2"); Dic.Add("DOTX2", "DOTX2"); Dic.Add("HIDDENX2", "HIDDENX2"); Dic.Add("PHANTOM", "PHANTOM"); Dic.Add("PHANTOM2", "PHANTOM2"); Dic.Add("PHANTOMX2", "PHANTOMX2"); Dic.Add("SOLID", "SOLID"); Dic.Add("BYLAYER", "BYLAYER"); Dic.Add("BYBLOCK", "BYBLOCK"); Dic.Add("DASHED0", "DASHED0"); Dic.Add("DOT0", "DOT0"); Dic.Add("DASHDOT0", "DASHDOT0"); Dic.Add("DASHDOTDOT0", "DASHDOTDOT0"); Dic.Add("INVISIBLE", "INVISIBLE"); }
/// <summary> /// 논리조직에 속한 조직 제거 /// </summary> public void DeleteGroupListCommandAction() { try { if (DeleteDic != null && FocusGroup != null) { //먼저있던 딕 제거하고 Dic.Remove(FocusGroup.GroupName); ShowDicValues.Remove(DeleteDic); //새로셋팅한 딕 넣어주기, value에 showdic으로넣어줘서 계속초기화가됬었.. ObservableCollection <UC_Organization> selectedValues = new ObservableCollection <UC_Organization>(); foreach (var a in ShowDicValues) { selectedValues.Add(a); } Dic.Add(FocusGroup.GroupName, selectedValues); //삭제하고나면 딕이 초기화된다 , 쇼가 초기화된디 //딕은초기화안됨, 쇼가 초기화되서안나타나는건데.. } else { } } catch { MessageBox.Show("논리그룹에 속한 조직을 삭제하지 못 했습니다."); } }
/// <summary> /// Save method /// </summary> /// <param name="uniqueId">UniqueID menu</param> /// <param name="CurrentValue">Color Save</param> public static void Save(string uniqueId, Color CurrentValue) { Debug.Print("Begin Save Color", General.Console_Message.ColorPicker); var Dic = ReadDataFile(); //Not have file if (Dic == new Dictionary <string, Color>()) { Dic = new Dictionary <string, Color>() { { uniqueId, CurrentValue }, }; } // Found a file else { //need save = all value in menu if (Dic.ContainsKey(uniqueId)) { //Has a key, only change that Value; Dic[uniqueId] = CurrentValue; } else { //No Key, add new Dic.Add(uniqueId, CurrentValue); } } //Convert to json string json = JsonConvert.SerializeObject(Dic, Formatting.Indented); //overwritten the file File.WriteAllText(FilePath, json); }
public override void CreateDic() { Dic.Add(CeWangStyleEnum.DengCha.ToString(), "等差"); Dic.Add(CeWangStyleEnum.DengFen.ToString(), "等分"); Dic.Add(CeWangStyleEnum.DuiShuZhengXiang.ToString(), "对数正向"); Dic.Add(CeWangStyleEnum.DuiShuFanXiang.ToString(), "对数反向"); Dic.Add(CeWangStyleEnum.None.ToString(), "无"); }
public override void CreateDic() { //如何获得系统字体列表 System.Drawing.Text.InstalledFontCollection fonts = new System.Drawing.Text.InstalledFontCollection(); foreach (System.Drawing.FontFamily family in fonts.Families) { Dic.Add(family.Name, family.Name); } }
public void Add(TKey key, TValue value) { Contract.Requires <ArgumentNullException>(key != null); var newValue = new Value <TKey, TValue>(value, lastAddedPair); var newPair = new Pair <TKey, TValue>(key, newValue); lastAdded.next = newPair; lastAdded = newValue; lastAddedPair = newPair; Dic.Add(newPair.key, newPair.value); }
public override void CreateDic() { Dic.Add(AttachmentPoint.BottomCenter.ToString(), "底部中心"); Dic.Add(AttachmentPoint.BottomLeft.ToString(), "底部左侧"); Dic.Add(AttachmentPoint.BottomRight.ToString(), "底部右侧"); Dic.Add(AttachmentPoint.MiddleCenter.ToString(), "中部中心"); Dic.Add(AttachmentPoint.MiddleLeft.ToString(), "中部左侧"); Dic.Add(AttachmentPoint.MiddleRight.ToString(), "中部右侧"); Dic.Add(AttachmentPoint.TopCenter.ToString(), "顶部中心"); Dic.Add(AttachmentPoint.TopLeft.ToString(), "顶部左侧"); Dic.Add(AttachmentPoint.TopRight.ToString(), "顶部右侧"); }
public override void CreateDic() { Dic.Add(LJJSFillMode.ModeDiagross.ToString(), LJJSFillMode.ModeDiagross.ToString()); Dic.Add(LJJSFillMode.ModeHatchBdiagonal.ToString(), LJJSFillMode.ModeHatchBdiagonal.ToString()); Dic.Add(LJJSFillMode.ModeHatchBlock.ToString(), "块填充"); Dic.Add(LJJSFillMode.ModeHatchCross.ToString(), LJJSFillMode.ModeHatchCross.ToString()); Dic.Add(LJJSFillMode.ModeHatchFDiagonal.ToString(), LJJSFillMode.ModeHatchFDiagonal.ToString()); Dic.Add(LJJSFillMode.ModeHatchHorizontal.ToString(), LJJSFillMode.ModeHatchHorizontal.ToString()); Dic.Add(LJJSFillMode.ModeHatchImage.ToString(), "图片填充"); Dic.Add(LJJSFillMode.ModeHatchPattern.ToString(), "图案填充"); Dic.Add(LJJSFillMode.ModeHatchVertical.ToString(), LJJSFillMode.ModeHatchVertical.ToString()); Dic.Add(LJJSFillMode.ModeNone.ToString(), "无填充"); Dic.Add(LJJSFillMode.ModeSolid.ToString(), "颜色填充"); }
//Добавляет ряд в структуру группировки public void AddRow(TablRow row, string[] fields, int level) { if (level < fields.Length) { var fieldMean = row[fields[level]].String ?? ""; if (!Dic.ContainsKey(fieldMean)) { Dic.Add(fieldMean, new GroupDic(fields[level], row[fields[level]])); } Dic[fieldMean].AddRow(row, fields, level + 1); } else { Rows.Add(row); } }
public Form1() { InitializeComponent(); char a = 'A'; for (int i = 0; i <= 9; i++) { Dic.Add(i, $"{i}"); } for (int i = 10; i <= 20; i++) { Dic.Add(i, char.ConvertFromUtf32(55 + i)); } textBox1.Text = "25"; textBox2.Text = "-2"; button1_Click(null, null); }
/// <summary> /// 논리조직에 속하는 조직 추가 /// </summary> public void AddGroupListCommandAction() { try { if (FocusGroup == null) { MessageBox.Show("추가할 논리 그룹을 선택해주세요"); } else if (SelectedGroupInListCollection == null) { MessageBox.Show("추가할 조직을 선택해주세요"); } else if (FocusGroup != null && SelectedGroupInListCollection != null) { ObservableCollection <UC_Organization> values = new ObservableCollection <UC_Organization>(); ObservableCollection <UC_Organization> selectedValues = new ObservableCollection <UC_Organization>(); foreach (var a in SelectedGroupInListCollection) { selectedValues.Add(a); } Dic.Add(FocusGroup.GroupName, selectedValues); bool result = Dic.TryGetValue(FocusGroup.GroupName, out values); if (result) { SelectedGroupInListCollection.Clear(); ShowDicValues.Clear(); foreach (var a in values) { ShowDicValues.Add(a); } } else { MessageBox.Show("그룹에 속한 조직을 가져오는데 실패하였습니다."); } } } catch { MessageBox.Show("논리그룹에 조직을 추가하지 못 했습니다."); } }
// Ajout d'un Character dans toutes les liste public void AddCharacter(CharacterInfo Info) { int AcctId = Info.Character.AcctId; if (!_Accounts.ContainsKey(AcctId)) { return; } Log.Info("AddCharacter", "Ajout du personnage : " + Info.Character.Name); lock (_AcctChars) { Dictionary <byte, CharacterInfo> Dic = null; if (_AcctChars.ContainsKey(AcctId)) { Dic = _AcctChars[AcctId]; } else { Dic = new Dictionary <byte, CharacterInfo>(); _AcctChars.Add(AcctId, Dic); } Dic.Add(Info.Character.SlotId, Info); } if (!_IdChars.ContainsKey((UInt32)Info.Character.Id)) { _IdChars.Add((UInt32)Info.Character.Id, Info); } string Name = Info.Character.Name.ToUpper(); lock (_NameChars) if (!_NameChars.ContainsKey(Name)) { _NameChars.Add(Name, Info); } }
public override void CreateDic() { Dic.Add(LineRoadStyle.JingShenLineRoad.ToString(), "井深线道"); Dic.Add(LineRoadStyle.StandardLineRoad.ToString(), "标准线道"); Dic.Add(LineRoadStyle.NullLineRoad.ToString(), "空线道"); }
public Form1() { InitializeComponent(); //Dic.Add("蕃茄雞肉義大利麵",75); var a = Directory.EnumerateFiles("food").ToList(); label1.Text = ""; label2.Text = ""; groupBox1.Text = "A客人"; groupBox2.Text = "B客人"; button1.Text = "點餐"; button2.Text = "點餐"; foreach (var item in a) { string temp = item.Split('\\')[1]; string Item = temp.Split('(')[0]; int Cost = int.Parse(temp.Split('(')[1].Replace("元).bmp", "")); Dic.Add(Item, Cost); Dic_GetPath.Add(Item, item); } AOrderPic = new PictureBox[2, 2]; AOrderLab = new Label[2, 2]; BOrderPic = new PictureBox[2, 2]; BOrderLab = new Label[2, 2]; for (int i = 0; i < 2; i++) { for (int j = 0; j < 2; j++) { AOrderPic[i, j] = new PictureBox() { Location = new Point(17 + j * 120, 62 + i * 120), Size = new Size(100, 100), BorderStyle = BorderStyle.FixedSingle, SizeMode = PictureBoxSizeMode.Zoom }; AOrderLab[i, j] = new Label() { Location = new Point(17 + j * 120, 45 + i * 120) , Text = "X" }; BOrderPic[i, j] = new PictureBox() { Location = new Point(17 + j * 120, 62 + i * 120), Size = new Size(100, 100), BorderStyle = BorderStyle.FixedSingle, SizeMode = PictureBoxSizeMode.Zoom }; BOrderLab[i, j] = new Label() { Location = new Point(17 + j * 120, 45 + i * 120) , Text = "X" }; groupBox1.Controls.Add(AOrderPic[i, j]); groupBox1.Controls.Add(AOrderLab[i, j]); groupBox2.Controls.Add(BOrderPic[i, j]); groupBox2.Controls.Add(BOrderLab[i, j]); } } At = new List <int>() { 0, 0, 0, 0 }; Bt = new List <int>() { 0, 0, 0, 0 }; }
public override void CreateDic() { Dic.Add(TxtArrangeStyle.TxtHorArrange.ToString(), "横向排列"); Dic.Add(TxtArrangeStyle.TxtVerArrange.ToString(), "纵向排列"); }
public override void CreateDic() { Dic.Add(MyCurveHatchPos.Left.ToString(), "左填充"); Dic.Add(MyCurveHatchPos.Right.ToString(), "右填充"); Dic.Add(MyCurveHatchPos.None.ToString(), "无填充"); }
public override void CreateDic() { Dic.Add(TxtItemOutFrame.DoubleParallel.ToString(), "双平行线外框"); Dic.Add(TxtItemOutFrame.DouPelAndVerDivide.ToString(), "双平行线纵分外框"); Dic.Add(TxtItemOutFrame.NoFrame.ToString(), "无外框"); }
public override void CreateDic() { Dic.Add(SymbolFrame.DoubleParallel.ToString(), "双平行线"); Dic.Add(SymbolFrame.NoFrame.ToString(), "无外框"); }
public void AddCustomer(Customer c) { Dic.Add(c.Id, c); }
public override void CreateDic() { Dic.Add(LineLeftKind.enline.ToString(), "左侧直线"); Dic.Add(LineLeftKind.unline.ToString(), "左侧无线"); Dic.Add(LineLeftKind.arrowline.ToString(), "左侧箭头"); }
public override void CreateDic() { Dic.Add(ImageFormStyle.YXPicture, "岩屑图像"); Dic.Add(ImageFormStyle.YGXWPicture, "荧光显微图像"); }
public override void CreateDic() { Dic.Add(TxtItemStyle.YsStyle.ToString(), "颜色型"); Dic.Add(TxtItemStyle.TxtStyle.ToString(), "文本型"); Dic.Add(TxtItemStyle.NumberStyle.ToString(), "数字型"); }
public override void CreateDic() { Dic.Add(LegendDrawStyle.HaveOutFrame.ToString(), "网格"); Dic.Add(LegendDrawStyle.NoOutFrame.ToString(), "矩形框"); }
/// <summary> /// コンストラクタ /// </summary> public Option() { Dic.Add("SaveDirectory", ".\\ss"); Dic.Add("FileNameFormat", "ss-<000>"); Dic.Add("ImageFormat", StringFromImageFormat(ImageFormat.Png)); }
public override void CreateDic() { Dic.Add(CJQXLineClass.Continus.ToString(), "折线"); Dic.Add(CJQXLineClass.StickLine.ToString(), "棒线"); }
public override void CreateDic() { Dic.Add(CJQXUnitPosition.AtRight.ToString(), "居右"); Dic.Add(CJQXUnitPosition.MidBottomPos.ToString(), "底部中间"); Dic.Add(CJQXUnitPosition.RightPos.ToString(), "右侧"); }
public override void CreateDic() { Dic.Add(bool.TrueString, "是"); Dic.Add(bool.FalseString, "否"); }
public override void CreateDic() { Dic.Add(HatchRectItemSubStyle.ColorField.ToString(), "颜色字段"); Dic.Add(HatchRectItemSubStyle.DirectFill.ToString(), "直接填充"); }
public override void CreateDic() { Dic.Add(ThinBZPosStyle.RightPos.ToString(), "右侧"); Dic.Add(ThinBZPosStyle.TopPos.ToString(), "上侧"); }