Пример #1
0
        public static bool ShowThreeValueInputForm(StringTriple titles, out NumerialTriple outVals, NumerialTriple initVals = null, string formTitle = "请输入")
        {
            if (initVals == null)
            {
                initVals = NumerialTriple.Zero;
            }
            var f = new InputThreeValueForm();

            f.SetValue(initVals).SetTitle(titles);
            f.Text = formTitle;
            if (f.ShowDialog() == DialogResult.OK)
            {
                outVals = f.Numerials;
                return(true);
            }
            outVals = NumerialTriple.Zero;
            return(false);
        }
Пример #2
0
 /// <summary>
 /// 设置
 /// </summary>
 /// <param name="titles"></param>
 /// <returns></returns>
 public InputThreeValueForm SetValue(NumerialTriple titles)
 {
     return(SetValue(titles.First, titles.Second, titles.Third));
 }