Example #1
0
 private void Button2_Click(object sender, EventArgs e)
 {
     this.Visible = false;
     using (ChooseColl dialog = new ChooseColl())
     {
         dialog.ShowDialog();
     }
     this.Visible = true;
     RefreshList();
 }
Example #2
0
 private void Main_Collections_Click(object sender, EventArgs e)
 {
     //Visible = false;
     using (var dialog = new ChooseColl())
     {
         var center = Location;
         center.X = center.X + Width / 2 - dialog.Width / 2;
         center.Y = center.Y + Height / 2 - dialog.Height / 2;
         dialog.StartPosition = FormStartPosition.Manual;
         dialog.Location = center;
         dialog.ShowDialog();
     }
     //Visible = true;
     RefreshList();
     Main_CurrentList.Text = LanguageManager.Get("Main_CurrentList_Text") + Core.CurrentListName;
 }