public RectWin(Gnd.RectInfo ri) { this.RI = ri; this.RI.Win = this; InitializeComponent(); }
public void NewRect() { Gnd.RectInfo ri; if (Gnd.I.DefRect != null) { ri = Gnd.I.DefRect.GetClone(); } else { ri = new Gnd.RectInfo(); } findSamePosLoopRestart: foreach (Gnd.RectInfo otherRi in Gnd.I.RectInfoList) { if (otherRi.XPos == ri.XPos && otherRi.YPos == ri.YPos) { const int XY_STEP = 5; ri.XPos += XY_STEP; ri.YPos += XY_STEP; goto findSamePosLoopRestart; } } Gnd.I.RectInfoList.Add(ri); Gnd.I.SaveData(); new RectWin(ri).Show(); }
public EditTextWin(Gnd.RectInfo ri) { this.RI = ri; InitializeComponent(); this.MinimumSize = this.Size; }
public PosColorWin(Gnd.RectInfo ri) { this.RI = ri; InitializeComponent(); this.LoadData(); }
private void 複製DToolStripMenuItem_Click(object sender, EventArgs e) { Gnd.RectInfo ri = this.RI.GetClone(); ri.XPos += 10; ri.YPos += 10; Gnd.I.RectInfoList.Add(ri); Gnd.I.SaveData(); new RectWin(ri).Show(); }
private void 追加AToolStripMenuItem_Click(object sender, EventArgs e) { #if true Gnd.I.MainWin.NewRect(); #else // old Gnd.RectInfo ri = new Gnd.RectInfo(); Gnd.I.RectInfoList.Add(ri); Gnd.I.SaveData(); new RectWin(ri).Show(); #endif }