добавляет выход из аккаунта
This commit is contained in:
parent
121abac88e
commit
5e5aff5f7d
15
MainForm.Designer.cs
generated
15
MainForm.Designer.cs
generated
@ -36,11 +36,11 @@
|
|||||||
this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
this.toolStripStatusLabel = new System.Windows.Forms.ToolStripStatusLabel();
|
||||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||||
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.fileToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
|
||||||
this.аккаунтToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.аккаунтToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.administrationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.administrationToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
|
this.helpToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||||
this.resultStatusStrip.SuspendLayout();
|
this.resultStatusStrip.SuspendLayout();
|
||||||
this.menuStrip1.SuspendLayout();
|
this.menuStrip1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
@ -130,12 +130,6 @@
|
|||||||
this.fileToolStripMenuItem.Size = new System.Drawing.Size(48, 20);
|
this.fileToolStripMenuItem.Size = new System.Drawing.Size(48, 20);
|
||||||
this.fileToolStripMenuItem.Text = "Файл";
|
this.fileToolStripMenuItem.Text = "Файл";
|
||||||
//
|
//
|
||||||
// helpToolStripMenuItem
|
|
||||||
//
|
|
||||||
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
|
||||||
this.helpToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
|
|
||||||
this.helpToolStripMenuItem.Text = "Справка";
|
|
||||||
//
|
|
||||||
// аккаунтToolStripMenuItem
|
// аккаунтToolStripMenuItem
|
||||||
//
|
//
|
||||||
this.аккаунтToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
this.аккаунтToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||||
@ -164,6 +158,13 @@
|
|||||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
|
this.exitToolStripMenuItem.Size = new System.Drawing.Size(189, 22);
|
||||||
this.exitToolStripMenuItem.Text = "Выход";
|
this.exitToolStripMenuItem.Text = "Выход";
|
||||||
|
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||||
|
//
|
||||||
|
// helpToolStripMenuItem
|
||||||
|
//
|
||||||
|
this.helpToolStripMenuItem.Name = "helpToolStripMenuItem";
|
||||||
|
this.helpToolStripMenuItem.Size = new System.Drawing.Size(65, 20);
|
||||||
|
this.helpToolStripMenuItem.Text = "Справка";
|
||||||
//
|
//
|
||||||
// MainForm
|
// MainForm
|
||||||
//
|
//
|
||||||
|
@ -59,5 +59,12 @@ namespace AwesomeEmailExtractor
|
|||||||
SettingsForm settingsForm = FormManager.Current.CreateForm<SettingsForm>();
|
SettingsForm settingsForm = FormManager.Current.CreateForm<SettingsForm>();
|
||||||
settingsForm.ShowDialog(this);
|
settingsForm.ShowDialog(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Globals.currentUser = null;
|
||||||
|
AuthorizationForm authorization = FormManager.Current.CreateForm<AuthorizationForm>();
|
||||||
|
FormManager.Current.Navigate(this, authorization);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user