Ejemplo n.º 1
0
        private void SetXYSize()
        {
            Single minX, maxX, minY, maxY;
            Single XSize, YSize;
            int    XNum, YNum;

            minX = Convert.ToSingle(TB_MinX.Text);
            maxX = Convert.ToSingle(TB_MaxX.Text);
            minY = Convert.ToSingle(TB_MinY.Text);
            maxY = Convert.ToSingle(TB_MaxY.Text);
            XNum = Convert.ToInt32(TB_XNum.Text);
            YNum = Convert.ToInt32(TB_YNum.Text);

            XSize         = (maxX - minX) / (XNum - 1);
            YSize         = (maxY - minY) / (YNum - 1);
            TB_XSize.Text = XSize.ToString();
            TB_YSize.Text = YSize.ToString();
        }
Ejemplo n.º 2
0
 private void Form_Dialog_MacroAddImage_Load(object sender, EventArgs e)
 {
     if (XSize != 0)
     {
         textBox_width.Text = XSize.ToString(CultureInfo.InvariantCulture);
     }
     if (YSize != 0)
     {
         textBox_height.Text = YSize.ToString(CultureInfo.InvariantCulture);
     }
     if (!string.IsNullOrEmpty(Path))
     {
         textBox_path.Text = Path;
         if (!File.Exists(textBox_path.Text))
         {
             MessageBox.Show(TB.L.Phrase["Form_Dialog_MacroAddImage.FileNotExists"]);
         }
         else
         {
             LoadPic();
         }
     }
 }
Ejemplo n.º 3
0
 public override void GenerateHash( )
 {
     base.GenerateHash();
     this.GeometryHash += GetMd5FromObject(BasePlane.ToJson() + XSize.ToJson() + YSize.ToJson() + ZSize.ToJson());
     this.Hash          = GetMd5FromObject(this);
 }