Beispiel #1
0
        private void renameAccountToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var accountNode    = (AccountNode)(SelectedNode);
            var connectionNode = (ConnectionNode)accountNode.Parent.Parent;
            var frm            = new FrmAccountProperties(BlockStudioProjectService.BlockStudioProject.Connection, 0, accountNode.Account);

            frm.ShowDialog(this);
            AttemptConnection(connectionNode);
        }
Beispiel #2
0
        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);
        }