private void lvRecent_MouseDoubleClick(object sender, MouseEventArgs e) { if (lvRecent.SelectedItems.Count > 0) { path = lvRecent.SelectedItems[0].Text; DialogResult = DialogResult.OK; result = StartDialogResult.RECENT; Close(); } }
private void btnRecent_Click(object sender, EventArgs e) { if (lvRecent.SelectedItems.Count != 0) { path = lvRecent.SelectedItems[0].Text; } else { MessageBox.Show("Please, choose a project!"); return; } DialogResult = DialogResult.OK; result = StartDialogResult.RECENT; Close(); }
private void btnImport_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; result = StartDialogResult.IMPORT; Close(); }
private void btnOpen_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; result = StartDialogResult.OPEN; Close(); }
private void btnNew_Click(object sender, EventArgs e) { DialogResult = DialogResult.OK; result = StartDialogResult.NEW; Close(); }