Example #1
0
        //Open Current Profile form
        private void getCurrentProfileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            SimpleTextBox simpleTxbForm = new SimpleTextBox("Current Profile", "Current Profile");

            simpleTxbForm.StartPosition = FormStartPosition.CenterScreen;
            simpleTxbForm.ShowDialog();
            Cursor.Current = Cursors.Default;
        }//End Open Current Profile Form
 //Open Current Profile form
 private void getCurrentProfileToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (Properties.Settings.Default.CurrentAccessToken != "No Access Token" && Properties.Settings.Default.CurrentAccessToken != "")
     {
         Cursor.Current = Cursors.WaitCursor;
         SimpleTextBox simpleTxbForm = new SimpleTextBox("Current Profile", "Current Profile");
         simpleTxbForm.StartPosition = FormStartPosition.CenterScreen;
         simpleTxbForm.ShowDialog();
         Cursor.Current = Cursors.Default;
     }
     else
     {
         MessageBox.Show("Not logged in", "Authentication error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }//End Open Current Profile Form