public PseudoDropDownHelper(Form parent)
 {
     _main         = parent as MainViewForm;
     _chatSettings = new ChatSettingsSubForm();
     _chatSettings.SetEvent(ChatSettingsSubForm.Option.ChangeTitleClick, ChatSettings_ChangeTitleClicked);
     _chatSettings.SetEvent(ChatSettingsSubForm.Option.ChangePictureClick, ChatSettings_ChangeChatPictureClicked);
     _chatSettings.SetEvent(ChatSettingsSubForm.Option.ShowAttachsClick, ChatSettings_ShowChatAttachsClicked);
     _chatSettings.Deactivate += Pseudo_Deactivate;
     _search = new SearchSubForm();
     _search.SetTextChangedEvent(Search_TextChanged);
     _search.Deactivate += Pseudo_Deactivate;
     _commonSettings     = new CommonSettingsSubForm();
     _commonSettings.SetEvent(CommonSettingsSubForm.Option.UserSettingsClick, CommonSettings_UserSettingsClicked);
     _commonSettings.SetEvent(CommonSettingsSubForm.Option.UserContactsClick, CommonSettings_UserContactsClicked);
     _commonSettings.SetEvent(CommonSettingsSubForm.Option.NewChatClick, CommonSettings_NewChatClicked);
     _commonSettings.Deactivate += Pseudo_Deactivate;
 }
예제 #2
0
 public PseudoDialogHelper(Form main, Form parent = null)
 {
     _main   = main as MainViewForm;
     _parent = parent;
 }