Beispiel #1
0
 internal WorkspaceView(string tag, ITaabusController controller)
     : base("Workspace." + tag, controller)
 {
     Controller = controller;
     AddFunction(new UserInteraction("Settings", OnConfiguration, Resources.appbar_settings));
     Client = new Panel();
 }
Beispiel #2
0
 protected MainView(string tag, ITaabusController controller)
 {
     _controller = controller;
     _toolbar.Stretch = true;
     _toolbar.Anchor = AnchorStyles.Top | AnchorStyles.Right;
     _frame.SuspendLayout();
     _frame.Name = "Taabus." + tag;
     _frame.ShadowType = MetroForm.MetroFormShadowType.DropShadow;
     _frame.Controls.Add(_toolbar);
     _frame.InstallPositionConfig();
     _frame.FormClosed += (s, e) => OnClose();
     _frame.ResumeLayout();
 }