private void unlockAccountToolStripMenuItem_Click(object sender, EventArgs e) { var accountNode = (AccountNode)(SelectedNode); var connectionNode = (ConnectionNode)(SelectedNode.Parent.Parent); var frm = new FrmAccountProperties(BlockStudioProjectService.BlockStudioProject.Connection, 1,accountNode.Account); frm.ShowDialog(this); AttemptConnection(connectionNode); }
private void newAccountToolStripMenuItem_Click(object sender, EventArgs e) { var connectionNode = (ConnectionNode)SelectedNode.Parent; var frm = new FrmAccountProperties(BlockStudioProjectService.BlockStudioProject.Connection, 0); frm.ShowDialog(this); BlockStudioProjectService.BlockStudioSettings.SetLastProjectLocation(BlockStudioProjectService.BlockStudioProject.ProjectFileSavePath); AttemptConnection(connectionNode); }