Inheritance: System.Windows.Forms.UserControl
Beispiel #1
0
        private TabPage CreateEditTab()
        {
            var tabName = "t_" + Guid.NewGuid().ToString("N");
            var tabPage = new TabPage();
            tabPage.Name = tabName;

            var editor = new EditControl(tabName);
            editor.Dock = DockStyle.Fill;

            tabPage.Tag = editor;
            tabPage.Controls.Add(editor);
            return tabPage;
        }
Beispiel #2
0
        private TabPage CreateEditTab()
        {
            var tabName = "t_" + Guid.NewGuid().ToString("N");
            var tabPage = new TabPage();

            tabPage.Name = tabName;

            var editor = new EditControl(tabName);

            editor.Dock = DockStyle.Fill;

            tabPage.Tag = editor;
            tabPage.Controls.Add(editor);
            return(tabPage);
        }
Beispiel #3
0
        private void OnIsDirtyChanged(EditControl control)
        {
            foreach (TabPage tab in editors.TabPages)
            {
                var editControl = GetEditControlFromTab(tab);
                if (control == editControl)
                {
                    if (control.IsDirty)
                    {
                        MarkDirty(tab);
                    }
                    else
                    {
                        MarkClean(tab);
                    }

                    break;
                }
            }
        }
Beispiel #4
0
 private void IsRunningChanged(EditControl control)
 {
     SetRun();
 }
Beispiel #5
0
        private void OnIsDirtyChanged(EditControl control)
        {
            foreach(TabPage tab in editors.TabPages)
            {
                var editControl = GetEditControlFromTab(tab);
                if(control == editControl)
                {
                    if (control.IsDirty)
                        MarkDirty(tab);
                    else
                        MarkClean(tab);

                    break;
                }
            }
        }
Beispiel #6
0
 private void IsRunningChanged(EditControl control)
 {
     SetRun();
 }