예제 #1
0
		public DocumentController(MainController mainController, Document document)
		{
			this.mainController = mainController;
			this.document = document;

			documentProperties = (DocumentProperties) document.CustomDocumentProperties;

			var documentStyleTitle = GetDocumentStyleTitle();
			style = mainController.FindStyleByTitle(documentStyleTitle) ?? mainController.DefaultStyle;
		}
예제 #2
0
		void AddinModule_AddinStartupComplete(object sender, EventArgs e)
		{
			try
			{
				mainController = new MainController(this);
			}
			catch (Exception ex)
			{
				LogException(ex);
			}
		}
예제 #3
0
		void AddinModule_AddinStartupComplete(object sender, EventArgs e)
		{
			try
			{
				mainController = new MainController(this);

				rbRefresh.PropertyChanging += OnRefreshPropertyChanging;
			}
			catch (Exception ex)
			{
				LogException(ex);
			}
		}