コード例 #1
0
 private void butMaker_Click(object sender, EventArgs e)
 {
     using (MakerDialog frm = new MakerDialog())
     {
         frm.ShowDialog();
         string code = frm.MakerCode.Trim();
         if (code != txtMakerCode.Text.Trim())
         {
             txtMakerCode.Text = code;
             txtMakerName.Text = frm.MakerName;
         }
     }
 }
コード例 #2
0
        public void ShowMakerDialog(MakerDialog makerdialog)
        {
            gMost.Children.Add(new Grid()
            {
                Background          = new SolidColorBrush(Colors.Transparent),
                HorizontalAlignment = HorizontalAlignment.Stretch,
                VerticalAlignment   = VerticalAlignment.Stretch,
            });

            gMost.Children.Add(makerdialog);

            ThicknessAnimation marginAnimation = new ThicknessAnimation
            {
                From = new Thickness(0, 0, 0, 0),
                To   = new Thickness(0, 30, 0, 0),
                //To = new Thickness(0, (ActualHeight - makerdialog.Height) / 2, 0, 0),
                Duration = TimeSpan.FromSeconds(0.3)
            };

            makerdialog.BeginAnimation(MarginProperty, marginAnimation);
        }
コード例 #3
0
ファイル: StoreInPlan.cs プロジェクト: swankham/Epicoil
 private void butMaker_Click(object sender, EventArgs e)
 {
     using (MakerDialog frm = new MakerDialog())
     {
         frm.ShowDialog();
         string code = frm.MakerCode;
         if (code != ModelClone.MakerCode)
         {
             HeadContent.MakerCode = code;
             HeadContent.MakerName = frm.MakerName;
             ModelClone.MakerCode = code;
             ModelClone.MakerName = frm.MakerName;
             HeadContent.MillCode = "";
             HeadContent.MillName = "";
         }
     }
     SetHeaderContent(HeadContent);
 }