Inheritance: System.Windows.Window
Example #1
0
        void SetupOnClick(object sender, RoutedEventArgs args)
        {
            PageMarginsDialog dlg = new PageMarginsDialog();

            dlg.Owner       = this;
            dlg.PageMargins = marginPage;

            if (dlg.ShowDialog().GetValueOrDefault())
            {
                marginPage = dlg.PageMargins;
            }
        }
        void PageSetupOnClick(object sender, RoutedEventArgs args)
        {
            // Create dialog and initialize PageMargins property.
            PageMarginsDialog dlg = new PageMarginsDialog();
            dlg.Owner = this;
            dlg.PageMargins = marginPage;

            if (dlg.ShowDialog().GetValueOrDefault())
            {
                // Save page margins from dialog box.
                marginPage = dlg.PageMargins;
            }
        }
Example #3
0
        void SetupOnClick(object sender, RoutedEventArgs e)
        {
            PageMarginsDialog dlg = new PageMarginsDialog()
            {
                Owner       = this,
                PageMargins = marginPage
            };

            if (dlg.ShowDialog().GetValueOrDefault())
            {
                // save data from dialog
                marginPage = dlg.PageMargins;
            }
        }
Example #4
0
        // Page Setup button: Invoke PageMarginsDialog.
        void SetupOnClick(object sender, RoutedEventArgs args)
        {
            // Create dialog and initialize PageMargins property.
            PageMarginsDialog dlg = new PageMarginsDialog();

            dlg.Owner       = this;
            dlg.PageMargins = marginPage;

            if (dlg.ShowDialog().GetValueOrDefault())
            {
                // Save page margins from dialog box.
                marginPage = dlg.PageMargins;
            }
        }
        void PageSetupOnClick(object sender, RoutedEventArgs args)
        {
            //PageSetupOnClick �̺�Ʈ ȣ��� �߻�

            PageMarginsDialog dlg = new PageMarginsDialog();
            //PageMarginsDialog ��ü����.

            dlg.Owner = this;
            //���� �����Ǿ� �ִ� �޸����� ������ ��´�.(ũ��, ���� �̸�, ��ġ ��)

            dlg.PageMargins = marginPage;
            //������ ������ �־��� margin ������ �� ���̾�α׿� ������.
            //Left ,Right ,Top, Bottom�� ���� ������ �����´�.

            if (dlg.ShowDialog().GetValueOrDefault())
            {       //ok�� ������...

                marginPage = dlg.PageMargins;
                //Page Setup���� ������ ������ �Է¹޾� �����´�.
                //Left, Right, Top, Bottom�� ���� ���� �������� �� marginPage�� ����
            }
        }
Example #6
0
        void SetupOnClick(object sender, RoutedEventArgs args)
        {
            PageMarginsDialog dlg = new PageMarginsDialog();
            dlg.Owner = this;
            dlg.PageMargins = marginPage;

            if (dlg.ShowDialog().GetValueOrDefault())
            {
                marginPage = dlg.PageMargins;
            }
        }