コード例 #1
0
        private void newToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmEditor editor = new frmEditor(username + "~" + postingwif);

            editor.MdiParent = this;
            editor.Show();
        }
コード例 #2
0
        private void login_DataAvailable(object sender, EventArgs e)
        {
            frmLogin child = sender as frmLogin;

            if (child != null)
            {
                string   signal = child.Data;
                string[] creds  = signal.Split('~');
                username   = creds[0];
                postingwif = creds[1];
                login.Hide();
                if (loggedIn == false)
                {
                    frmEditor editor = new frmEditor(signal);
                    editor.MdiParent = this;
                    editor.Show();
                    loggedIn = true;
                }
            }
        }