private void AddAFolder_Click(object sender, EventArgs e) { try { AddFolder addfold = new AddFolder(); addfold.currentFolderOptions = folderParents; addfold.tv = treeView1; addfold.LenAcc = LENAccount; GeneralFunctions.ParentForm = treeView1.SelectedNode.Text; addfold.ShowDialog(); if (!addfold.cancelled) { string selectedfolder = addfold.folderName; string selectedfolderparent = addfold.folderParentName; string getmaxOrder = addfold.getmaxOrder; string gettotalorder = addfold.getTotalOrder; string getAccountNumberFromFolder = addfold.getAccountNumber; AddFolder(selectedfolder, selectedfolderparent, getmaxOrder, gettotalorder, getAccountNumberFromFolder); } } catch (Exception ee) { MessageBox.Show(ee.Message); } }
private void btnAddFolder_Click(object sender, EventArgs e) { AddFolder addfolder = new AddFolder(); addfolder.ShowDialog(); }
private void addFolderToolStripMenuItem_Click(object sender, EventArgs e) { AddFolder addfolder = new AddFolder(); addfolder.ShowDialog(); }