Esempio n. 1
0
        public RectWin(Gnd.RectInfo ri)
        {
            this.RI     = ri;
            this.RI.Win = this;

            InitializeComponent();
        }
Esempio n. 2
0
        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();
        }
Esempio n. 3
0
        public EditTextWin(Gnd.RectInfo ri)
        {
            this.RI = ri;

            InitializeComponent();

            this.MinimumSize = this.Size;
        }
Esempio n. 4
0
        public PosColorWin(Gnd.RectInfo ri)
        {
            this.RI = ri;

            InitializeComponent();

            this.LoadData();
        }
Esempio n. 5
0
 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();
 }
Esempio n. 6
0
        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
        }