Exemple #1
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            MetroDialogWindow metroDialogWindow1 = new MetroDialogWindow(this);

            Point location = this.metroButton1.PointToScreen(this.metroButton1.Location);

            location.Y += 50;
            metroDialogWindow1.StartPosition = FormStartPosition.Manual;
            metroDialogWindow1.Location      = location;

            metroDialogWindow1.SaveDialogEvents += new MetroDialogWindow.SaveDialog(newScenario);

            metroDialogWindow1.ShowDialog();
        }
Exemple #2
0
        private void metroButton1_Click(object sender, EventArgs e)
        {
            MetroDialogWindow metroDialogWindow1 = new MetroDialogWindow(this);

            Point location = this.metroButton1.PointToScreen(this.metroButton1.Location);
            location.Y += 50;
            metroDialogWindow1.StartPosition = FormStartPosition.Manual;
            metroDialogWindow1.Location = location;

            metroDialogWindow1.SaveDialogEvents += new MetroDialogWindow.SaveDialog(newScenario);

            metroDialogWindow1.ShowDialog();
        }