예제 #1
0
        public EditorRequestSaverWindow(string RequestLink, string RequestMethod, WebRequestParamsItem[] WR_ParamsItem,
                                        EventEditorRequestSaver SaveConfirm = null, EventEditorRequestSaver CancelEvent = null)
        {
            InitializeComponent();
            WindowActions();
            NetworkActions();

            DC_EditorRequestSaver = new DynamicEditorRequestSaver(string.Empty, "Default");
            this.DataContext      = DC_EditorRequestSaver;

            this.WR_ParamsItem = WR_ParamsItem;
            this.RequestLink   = RequestLink;
            this.RequestMethod = RequestMethod;

            this.SaveConfirm = SaveConfirm;
            this.CancelEvent = CancelEvent;
        }
        public EditorRequestRenameWindow(string RequestLink, string RequestMethod, ModelRequestDirectory RequestDirectory,
                                         EventEditorRequestRename SaveConfirm = null, EventEditorRequestRename CancelEvent = null)
        {
            InitializeComponent();
            WindowActions();
            NetworkActions();

            DC_EditorRequestSaver = new DynamicEditorRequestSaver(RequestDirectory.RequestTitle, RequestDirectory.Title);
            this.DataContext      = DC_EditorRequestSaver;

            this.RequestDirectory = RequestDirectory;
            this.RequestLink      = RequestLink;
            this.RequestMethod    = RequestMethod;

            this.SaveConfirm = SaveConfirm;
            this.CancelEvent = CancelEvent;
        }