Exemplo n.º 1
0
 private void bAddResize_Click(object sender, System.EventArgs e)
 {
     if (gumpChooser==null)
         gumpChooser = new GumpChooser(pathToGumps);
     if (gumpChooser.ShowDialog(this)!=DialogResult.Cancel&&gumpChooser.SelectedIndex!=null) {
         ResizableGump rg = new ResizableGump(gumpChooser.SelectedIndex, pathToGumps);
         ((GumpViewer)tabControl1.SelectedTab.Controls[0]).addGump(rg);
     }
 }
Exemplo n.º 2
0
 private void bAddButton_Click(object sender, System.EventArgs e)
 {
     if (gumpChooser==null)
         gumpChooser = new GumpChooser(pathToGumps);
     DialogResult dl = gumpChooser.ShowDialog(this);
     if (dl!=DialogResult.Cancel&&gumpChooser.SelectedIndex!=null) {
         GumpButton gb = new GumpButton(gumpChooser.SelectedIndex, pathToGumps);
         ((GumpViewer)tabControl1.SelectedTab.Controls[0]).addGump(gb);
     }
 }