private void tbCom_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TextBox tb = (TextBox)sender;

            if (tb.Text.Trim() != string.Empty)
            {
                ViewText vt = new ViewText(tb.Text, "Комментарии руководителя");
                vt.ShowDialog();
            }
        }
        private void tbNext_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TextBox tb = (TextBox)sender;

            if (tb.Text.Trim() != string.Empty)
            {
                ViewText vt = new ViewText(tb.Text, "Последующие шаги");
                vt.ShowDialog();
            }
        }
        private void tbPlan_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TextBox tb = (TextBox)sender;

            if (tb.Text.Trim() != string.Empty)
            {
                ViewText vt = new ViewText(tb.Text, "План действий");
                vt.ShowDialog();
            }
        }
        private void tbFact_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            TextBox tb = (TextBox)sender;

            if (tb.Text.Trim() != string.Empty)
            {
                ViewText vt = new ViewText(tb.Text, "Выполнение");
                vt.ShowDialog();
            }
        }
Beispiel #5
0
        private void showTextInViewTextForm(string title, string text)
        {
            ViewText vt = new ViewText(title, text);

            vt.ShowDialog();
        }