Exemplo n.º 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;
         }
     }
 }
Exemplo n.º 2
0
 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);
 }