Esempio n. 1
0
 private void OK_Click(object sender, EventArgs e)
 {
     if (Pattion.Text.Length > 0)
     {
         if (TittleName.Text.Length > 0)
         {
             c = new Component(TittleName.Text, Pattion.Text, SaveOpenXML.SOXML().GetIcon(Pattion.Text, true).ToBitmap());
             LocalGroup.AddComponent(c);
             LocalGroup.SetSizeMe();
             this.Close();
         }
         else
         {
             char[] N = Pattion.Text.ToCharArray();
             string O = "";
             for (int i = N.Length - 1; N[i] != '\\'; O += N[i], i--)
             {
                 ;
             }
             N = O.ToCharArray();
             for (int i = N.Length - 1; i >= 0; TittleName.Text += N[i], i--)
             {
                 ;
             }
         }
     }
 }
Esempio n. 2
0
 public MyTable()
 {
     InitializeComponent();
     this.Location = new Point(Screen.PrimaryScreen.WorkingArea.Width - 230, Screen.PrimaryScreen.WorkingArea.Height - 35);
     widjituet();
     CloseOpne(false);
     SaveOpenXML.SOXML().OpenS(this);
 }
Esempio n. 3
0
 private void сохранитьToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SaveOpenXML.SOXML().SaveO(this);
 }