private void AddNewLetter(DP_DataView dataItem) { var initializer = new LetterAreaInitializer(); initializer.DataInstance = dataItem; var editLetterArea = new EditLetterArea(initializer); editLetterArea.LetterUpdated += EditLetterArea_LetterUpdated; AgentUICoreMediator.GetAgentUICoreMediator.UIManager.GetDialogWindow().ShowDialog(editLetterArea.View, "نامه", Enum_WindowSize.Big); }
private void EditMenu_Clicked(object sender, EventArgs e, LetterDTO letter) { var initializer = new LetterAreaInitializer(); initializer.LetterID = letter.ID; var editLetterArea = new EditLetterArea(initializer); editLetterArea.LetterUpdated += EditLetterArea_LetterUpdated; AgentUICoreMediator.GetAgentUICoreMediator.UIManager.GetDialogWindow().ShowDialog(editLetterArea.View, "نامه", Enum_WindowSize.Big); }