コード例 #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();
        }
コード例 #2
0
ファイル: RosterOptimizer.cs プロジェクト: roger1218/ROIS
        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();
        }